private void Awake() { _inst = this; _gameObject = gameObject; _continueRect = ContinueBtn.GetComponent <RectTransform>(); transform.SetAsFirstSibling(); ContinueBtn.onClick.AddListener(Continue); }
private void Start() { if (PlayerInfo.GuideStep == 0) { GuidePanel.GetInst().ShowPanel(); } else { m_BattleScene.OnBattleInit(); } }
private void OnDestroy() { _inst = null; }