Exemple #1
0
 void OnEnable()
 {
     EventDispatcher.AddHandler(EventKey.GAME_SET_ROTATION, HandleEvent);
     EventDispatcher.AddHandler(EventKey.PLAYER_DESTROY, HandleEvent);
     EventDispatcher.AddHandler(EventKey.PLAYER_TOGGLE_ACTIVE, HandleEvent);
     EventDispatcher.AddHandler(EventKey.PLAYER_MOVE, HandleEvent);
     EventDispatcher.AddHandler(EventKey.PLAYER_APPLY_FORCE, HandleEvent);
 }
Exemple #2
0
 void OnEnable()
 {
     EventDispatcher.AddHandler(EventKey.INPUT_ROTATE, HandleEvent);
     EventDispatcher.AddHandler(EventKey.GAME_SET_ROTATION, HandleEvent);
     EventDispatcher.AddHandler(EventKey.PLAYER_SET_CHECKPOINT, HandleEvent);
     EventDispatcher.AddHandler(EventKey.PLAYER_SPAWN, HandleEvent);
     EventDispatcher.AddHandler(EventKey.PLAYER_BONUS_OBJECT, HandleEvent);
     EventDispatcher.AddHandler(EventKey.GAME_LEVEL_COMPLETE, HandleEvent);
 }
Exemple #3
0
 protected void OnEnable()
 {
     EventDispatcher.AddHandler(EventKey.INPUT_PAUSE, HandleEvent);
     EventDispatcher.AddHandler(EventKey.GAME_SHOW_COMPLETE_MENU, HandleEvent);
 }
Exemple #4
0
 void OnEnable()
 {
     EventDispatcher.AddHandler(EventKey.GAME_SET_ROTATION, HandleEvent);
 }
 public void AddEventHandler(short type, EventHandler handler)
 {
     Dispatcher.AddHandler(type, handler);
 }
Exemple #6
0
 void OnEnable()
 {
     EventDispatcher.AddHandler(EventKey.GAME_ENABLE_GOAL, HandleEvent);
 }