private void OnDisable() { EventRegister.EventStopListening <VirusGameStateEvent>(this); EventRegister.EventStopListening <FirstByteClick5DownEvent>(this); InputKillVirus.Instance.RemoveEvent(ClickEnterBtEvent, InputKillVirus.EventState.Enter); InputKillVirus.Instance.RemoveEvent(ClickEscBtEvent, InputKillVirus.EventState.Esc); }
private void OnDisable() { EventRegister.EventStopListening <VirusGameStateEvent>(this); EventRegister.EventStopListening <FirstByteClick5DownEvent>(this); if (IGamerProfile.Instance != null) { InputKillVirus.Instance.RemoveEvent(ClickEnterBtEvent, InputKillVirus.EventState.Enter); } }
private void OnDisable() { EventRegister.EventStopListening <FirstByteClick1DownEvent>(this); EventRegister.EventStopListening <FirstByteClick2DownEvent>(this); EventRegister.EventStopListening <FirstByteClick3DownEvent>(this); EventRegister.EventStopListening <FirstByteClick4DownEvent>(this); EventRegister.EventStopListening <FirstByteClick1UpEvent>(this); EventRegister.EventStopListening <FirstByteClick2UpEvent>(this); EventRegister.EventStopListening <FirstByteClick3UpEvent>(this); EventRegister.EventStopListening <FirstByteClick4UpEvent>(this); }
private void OnDisable() { EventRegister.EventStopListening <FirstByteClick1DownEvent>(this); EventRegister.EventStopListening <FirstByteClick2DownEvent>(this); EventRegister.EventStopListening <FirstByteClick3DownEvent>(this); EventRegister.EventStopListening <FirstByteClick4DownEvent>(this); EventRegister.EventStopListening <FirstByteClick1UpEvent>(this); EventRegister.EventStopListening <FirstByteClick2UpEvent>(this); EventRegister.EventStopListening <FirstByteClick3UpEvent>(this); EventRegister.EventStopListening <FirstByteClick4UpEvent>(this); if (IGamerProfile.Instance != null) { InputKillVirus.Instance.RemoveEvent(ClickUpBtEvent, InputKillVirus.EventState.Up); InputKillVirus.Instance.RemoveEvent(ClickDownBtEvent, InputKillVirus.EventState.Down); InputKillVirus.Instance.RemoveEvent(ClickLeftBtEvent, InputKillVirus.EventState.Left); InputKillVirus.Instance.RemoveEvent(ClickRightBtEvent, InputKillVirus.EventState.Right); } }
private void OnDisable() { EventRegister.EventStopListening <UIVirusAddLevelCoinEvent>(this); EventRegister.EventStopListening <UIVirusTipEvent>(this); }
private void OnDisable() { EventRegister.EventStopListening <UIVirusAddTotalCoinEvent>(this); }
private void OnDisable() { EventRegister.EventStopListening <VirusGameStateEvent>(this); EventRegister.EventStopListening <FirstByteClick5DownEvent>(this); }
private void OnDisable() { EventRegister.EventStopListening <VirusPropAddEvent>(this); }