From 7a9220f737de87a7bdc1c65ae10579ece557e4a4 Mon Sep 17 00:00:00 2001 From: liuliang <597380732@qq.com> Date: Wed, 8 Jan 2025 21:03:19 +0800 Subject: [PATCH] add --- Role/Role.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Role/Role.cs b/Role/Role.cs index af64817..35d98dd 100644 --- a/Role/Role.cs +++ b/Role/Role.cs @@ -218,7 +218,16 @@ public class Role : Fun public virtual async void Start() { - + if (mySkillUp == null) + { + mySkillUp = this.transform.GetComponent(); + } + + if (mySkillUp == null) + { + UnityEngine.Debug.LogError(this.name+"mySkillUp is no"); + } + maxHp = hp; SetSelfInfo(); //SetAttackRange();//设置攻击范围