From dae940c7c2d9dc7b906bce5fac50d8f19345e039 Mon Sep 17 00:00:00 2001 From: wulongxiao <2545507770@qq.com> Date: Mon, 30 Dec 2024 12:40:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=8C=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Prefabs/charatar/enemy/wood_min.prefab | 4 ++-- .../Assets/script/A_Fight/CharacterClick.cs | 2 +- meng_yao/Assets/script/A_Fight/SpawnPool.cs | 3 --- .../Assets/script/A_Fight/charainfoPanel.cs | 20 +++++++++++++++++++ 4 files changed, 23 insertions(+), 6 deletions(-) diff --git a/meng_yao/Assets/Prefabs/charatar/enemy/wood_min.prefab b/meng_yao/Assets/Prefabs/charatar/enemy/wood_min.prefab index 4d6ded53..779d88e6 100644 --- a/meng_yao/Assets/Prefabs/charatar/enemy/wood_min.prefab +++ b/meng_yao/Assets/Prefabs/charatar/enemy/wood_min.prefab @@ -330,7 +330,7 @@ MonoBehaviour: id: 0 Name: camp: 1 - hp: 500 + hp: 20 dieIndex: 1 Hpfiil: {fileID: 1566038940701374259} HpfiilYello: {fileID: 605146830908541898} @@ -633,7 +633,7 @@ SpriteRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 - m_Sprite: {fileID: 21300000, guid: cebb0d54c57db444d8b1f48aab88bb48, type: 3} + m_Sprite: {fileID: 21300000, guid: 0b98f7c80a18aa544a59829d0d8e8cb5, type: 3} m_Color: {r: 1, g: 1, b: 1, a: 1} m_FlipX: 0 m_FlipY: 0 diff --git a/meng_yao/Assets/script/A_Fight/CharacterClick.cs b/meng_yao/Assets/script/A_Fight/CharacterClick.cs index 01a56fd3..f4a6395f 100644 --- a/meng_yao/Assets/script/A_Fight/CharacterClick.cs +++ b/meng_yao/Assets/script/A_Fight/CharacterClick.cs @@ -100,7 +100,7 @@ public class CharacterClick : MonoBehaviour if (role.camp == Camp.Enemy) { //string eveText,string name,string def,string speed,string shanghai,string info,int hp,int maxHp - panelRect.GetComponent().UpDateShow("1", "Enemy_002", "0", "3", "1", "测试文档一", role.hp, 100f); + panelRect.GetComponent().UpDateShow("1", "Enemy_001", "0", "3", "1", "测试文档一", role.hp, role.maxHp); } else diff --git a/meng_yao/Assets/script/A_Fight/SpawnPool.cs b/meng_yao/Assets/script/A_Fight/SpawnPool.cs index a2197404..e51bbbe4 100644 --- a/meng_yao/Assets/script/A_Fight/SpawnPool.cs +++ b/meng_yao/Assets/script/A_Fight/SpawnPool.cs @@ -92,10 +92,7 @@ public class SpawnPool : Base void Start() { - - Base.GlobalObj.GetComponent().OnGamePlay += this.StartSpawning; - } public void UpdateNodeList() { diff --git a/meng_yao/Assets/script/A_Fight/charainfoPanel.cs b/meng_yao/Assets/script/A_Fight/charainfoPanel.cs index 4d529328..39eee96a 100644 --- a/meng_yao/Assets/script/A_Fight/charainfoPanel.cs +++ b/meng_yao/Assets/script/A_Fight/charainfoPanel.cs @@ -45,6 +45,15 @@ public class charainfoPanel : Base } + /// + /// + /// + /// 等级 + /// 名字 + /// 信息 + /// 攻击力 + /// 攻击范围 + /// 攻击cd public void UpDateShow(string LeveText, string NameText, string InfoText, string AttackText, string AttackFanweiText,string AttackCD) { this.LeveText.text= "Lv."+LeveText; @@ -55,6 +64,17 @@ public class charainfoPanel : Base this.AttackCD.text= ""+ AttackCD+""; } + /// + /// + /// + /// 等级 + /// 名字 + /// 防御力 + /// 速度 + /// 伤害 + /// 信息 + /// 血量 + /// 最大血量 public void UpDateShow(string eveText,string name,string def,string speed,string shanghai,string info,float hp,float maxHp) { textList[0].text = "lv." + eveText;