public void OnDestroy() { _cardList.Clear(); _currCard?.OnDestroy(); _currCard = null; GameEventCenter.RemoveListener(GameEvent.OnPlayerDead, OnPlayerDead); }
protected override void OnDestroy() { base.OnDestroy(); DialogMgr.InDrawingDialog = false; GameEventCenter.RemoveListener(GameEvent.UI_NextChat, OnClickNext); }
void OnDestroy() { GameEventCenter.RemoveListener(GameEvent.OnControllerDeviceChanged, OnDeviceChanged); }
protected override void OnDestroy() { base.OnDestroy(); GameEventCenter.RemoveListener(GameEvent.UI_Left, OnClickPrev); GameEventCenter.RemoveListener(GameEvent.UI_Right, OnClickRight); }
protected override void OnDestroy() { base.OnDestroy(); GameEventCenter.RemoveListener(GameEvent.UI_Up, OnClickUp); GameEventCenter.RemoveListener(GameEvent.UI_Down, OnClickDown); }
protected virtual void OnDestroy() { GameEventCenter.RemoveListener(GameEvent.UI_Sure, OnClickSure); }
protected override void OnDestroy() { base.OnDestroy(); GameEventCenter.RemoveListener(GameEvent.OnEnemyDie, OnEnemyDie); }
protected override void OnDestroy() { base.OnDestroy(); GameEventCenter.RemoveListener(GameEvent.LifeCountChanged, RefreshLifeCount); Instance = null; }
void OnDisable() { GameEventCenter.RemoveListener(GameEvent.TestEvent, ShowLog); //dispose }