Merge branch 'main' of http://shu.sheziwanglo.cn:3000/shurongsen/UnityCommon
This commit is contained in:
commit
e944cf9869
11
Role/Role.cs
11
Role/Role.cs
@ -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();//设置攻击范围
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user