add
This commit is contained in:
parent
bc7c681282
commit
7a9220f737
11
Role/Role.cs
11
Role/Role.cs
@ -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();//设置攻击范围
|
||||||
|
Loading…
Reference in New Issue
Block a user