This commit is contained in:
GL 2025-01-09 10:37:59 +08:00
commit e944cf9869
2 changed files with 11 additions and 2 deletions

View File

@ -218,7 +218,16 @@ public class Role : Fun
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;
SetSelfInfo();
//SetAttackRange();//设置攻击范围

View File

@ -12,7 +12,7 @@ public class Base : MonoBehaviour
{
[HideInInspector]
public string description = "";
private List<string> LoadClassName = new List<string>() { "gameGlobal", "Mengyao_Skill_Date" };//写入需要全局自动实例化的类
private List<string> LoadClassName = new List<string>() { "gameGlobal" };//写入需要全局自动实例化的类
// [Header("关闭窗口的按钮")] public Button retbutton;
// [Header("需要关闭的窗口")] public GameObject ClosureObj;
public static GameObject GlobalObj;