コード例 #1
0
 private void OnEnable()
 {
     EventRegister.EventStartListening <VirusGameStateEvent>(this);
     EventRegister.EventStartListening <FirstByteClick5DownEvent>(this);
     InputKillVirus.Instance.AddEvent(ClickEnterBtEvent, InputKillVirus.EventState.Enter);
     InputKillVirus.Instance.AddEvent(ClickEscBtEvent, InputKillVirus.EventState.Esc);
 }
コード例 #2
0
 private void OnEnable()
 {
     EventRegister.EventStartListening <VirusGameStateEvent>(this);
     EventRegister.EventStartListening <FirstByteClick5DownEvent>(this);
     if (IGamerProfile.Instance != null)
     {
         InputKillVirus.Instance.AddEvent(ClickEnterBtEvent, InputKillVirus.EventState.Enter);
     }
 }
コード例 #3
0
    private void OnEnable()
    {
        EventRegister.EventStartListening <FirstByteClick1DownEvent>(this);
        EventRegister.EventStartListening <FirstByteClick2DownEvent>(this);
        EventRegister.EventStartListening <FirstByteClick3DownEvent>(this);
        EventRegister.EventStartListening <FirstByteClick4DownEvent>(this);

        EventRegister.EventStartListening <FirstByteClick1UpEvent>(this);
        EventRegister.EventStartListening <FirstByteClick2UpEvent>(this);
        EventRegister.EventStartListening <FirstByteClick3UpEvent>(this);
        EventRegister.EventStartListening <FirstByteClick4UpEvent>(this);
    }
コード例 #4
0
    private void OnEnable()
    {
        EventRegister.EventStartListening <FirstByteClick1DownEvent>(this);
        EventRegister.EventStartListening <FirstByteClick2DownEvent>(this);
        EventRegister.EventStartListening <FirstByteClick3DownEvent>(this);
        EventRegister.EventStartListening <FirstByteClick4DownEvent>(this);

        EventRegister.EventStartListening <FirstByteClick1UpEvent>(this);
        EventRegister.EventStartListening <FirstByteClick2UpEvent>(this);
        EventRegister.EventStartListening <FirstByteClick3UpEvent>(this);
        EventRegister.EventStartListening <FirstByteClick4UpEvent>(this);
        if (IGamerProfile.Instance != null)
        {
            InputKillVirus.Instance.AddEvent(ClickUpBtEvent, InputKillVirus.EventState.Up);
            InputKillVirus.Instance.AddEvent(ClickDownBtEvent, InputKillVirus.EventState.Down);
            InputKillVirus.Instance.AddEvent(ClickLeftBtEvent, InputKillVirus.EventState.Left);
            InputKillVirus.Instance.AddEvent(ClickRightBtEvent, InputKillVirus.EventState.Right);
        }
    }
コード例 #5
0
 private void OnEnable()
 {
     EventRegister.EventStartListening <UIVirusAddLevelCoinEvent>(this);
     EventRegister.EventStartListening <UIVirusTipEvent>(this);
 }
 private void OnEnable()
 {
     EventRegister.EventStartListening <UIVirusAddTotalCoinEvent>(this);
 }
コード例 #7
0
ファイル: VirusGameMrg.cs プロジェクト: allindev/TestGame
 private void OnEnable()
 {
     EventRegister.EventStartListening <VirusGameStateEvent>(this);
     EventRegister.EventStartListening <FirstByteClick5DownEvent>(this);
 }
コード例 #8
0
 private void OnEnable()
 {
     EventRegister.EventStartListening <VirusPropAddEvent>(this);
 }