Exemplo n.º 1
0
    protected void Awake()
    {
        button = GetComponent <Button>();

        if (button == null)
        {
            Debug.LogError($"{name} does not have an attached button component!");
        }

        // Register listeners
        PauseEvent.RegisterListener(GamePaused);
    }
Exemplo n.º 2
0
 protected void Awake()
 {
     PauseEvent.RegisterListener(LogEvent);
     MenuEvent.RegisterListener(LogEvent);
     TileSoldEvent.RegisterListener(LogEvent);
     TileDestroyedEvent.RegisterListener(LogEvent);
     TileDamageEvent.RegisterListener(LogEvent);
     TileUpdateEvent.RegisterListener(LogEvent);
     BaseDamageEvent.RegisterListener(LogEvent);
     BaseDamageUIEvent.RegisterListener(LogEvent);
     PurchaseMadeEvent.RegisterListener(LogEvent);
     PartsChangedUIEvent.RegisterListener(LogEvent);
     EnemyRecycledEvent.RegisterListener(LogEvent);
     GameStartEvent.RegisterListener(LogEvent);
     GameOverEvent.RegisterListener(LogEvent);
     GameWonEvent.RegisterListener(LogEvent);
     FastForwardEvent.RegisterListener(LogEvent);
 }
Exemplo n.º 3
0
 protected void Awake()
 {
     // Register listeners
     PauseEvent.RegisterListener(Pause);
 }