void Start() { if (BattleHitMgr.Instance != null) { MainSystem = BattleHitMgr.Instance; if (Start_Key) { AddNum(); } if (Update_Num == 1) { Invoke("AddNum", Update_StartTime); } else if (Update_Num > 2) { NextTime = Update_LongTime / (Update_Num - 1); Invoke("NextAddNum", Update_StartTime); } } else { //删除脚本 Destroy(this); } }
void Awake() { Instance = this; OverSkill_Appear = false; recordedCombo = new List <int>(); isBtnType = leftLight != null && RightLight != null; }