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); }
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); }
protected void OnEnable() { EventDispatcher.AddHandler(EventKey.INPUT_PAUSE, HandleEvent); EventDispatcher.AddHandler(EventKey.GAME_SHOW_COMPLETE_MENU, HandleEvent); }
void OnEnable() { EventDispatcher.AddHandler(EventKey.GAME_SET_ROTATION, HandleEvent); }
public void AddEventHandler(short type, EventHandler handler) { Dispatcher.AddHandler(type, handler); }
void OnEnable() { EventDispatcher.AddHandler(EventKey.GAME_ENABLE_GOAL, HandleEvent); }