This commit is contained in:
liuliang 2025-01-08 21:03:19 +08:00
parent bc7c681282
commit 7a9220f737

View File

@ -218,7 +218,16 @@ public class Role : Fun
public virtual async void Start() public virtual async void Start()
{ {
if (mySkillUp == null)
{
mySkillUp = this.transform.GetComponent<SkillUp>();
}
if (mySkillUp == null)
{
UnityEngine.Debug.LogError(this.name+"mySkillUp is no");
}
maxHp = hp; maxHp = hp;
SetSelfInfo(); SetSelfInfo();
//SetAttackRange();//设置攻击范围 //SetAttackRange();//设置攻击范围