public override bool HandleEvent(GameEvent e, Object value) { switch (e) { // called on trigger enter case GameEvent.CLASS_TYPE_ENEMY_SPAWNER: spawner = (EnemySpawner)value; spawner.Begin(); break; } return(true); }