void StopAllListeners() { if (PMR_EventManager.Instance) { PMR_EventManager.StopListening(PMR_EventSetup.Game.PAUSE_GAME, CheckPause); PMR_EventManager.StopListening(PMR_EventSetup.Game.UNPAUSE_GAME, CheckUnPause); } }
protected virtual void OnDestroy() { PMR_EventManager.StopListening(PMR_EventSetup.Game.SET_VELOCITY, SetVelocity); PMR_EventManager.StopListening(PMR_EventSetup.Game.END_COUNTDOWN, StartTheGame); PMR_EventManager.StopListening(PMR_EventSetup.Game.SHOW_END_PANEL, StopGame); }