コード例 #1
0
 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);
 }
コード例 #2
0
 private void OnDisable()
 {
     EventRegister.EventStopListening <VirusGameStateEvent>(this);
     EventRegister.EventStopListening <FirstByteClick5DownEvent>(this);
     if (IGamerProfile.Instance != null)
     {
         InputKillVirus.Instance.RemoveEvent(ClickEnterBtEvent, InputKillVirus.EventState.Enter);
     }
 }
コード例 #3
0
    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);
    }
コード例 #4
0
    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);
        }
    }
コード例 #5
0
 private void OnDisable()
 {
     EventRegister.EventStopListening <UIVirusAddLevelCoinEvent>(this);
     EventRegister.EventStopListening <UIVirusTipEvent>(this);
 }
 private void OnDisable()
 {
     EventRegister.EventStopListening <UIVirusAddTotalCoinEvent>(this);
 }
コード例 #7
0
ファイル: VirusGameMrg.cs プロジェクト: allindev/TestGame
 private void OnDisable()
 {
     EventRegister.EventStopListening <VirusGameStateEvent>(this);
     EventRegister.EventStopListening <FirstByteClick5DownEvent>(this);
 }
コード例 #8
0
 private void OnDisable()
 {
     EventRegister.EventStopListening <VirusPropAddEvent>(this);
 }