protected override void Awake() { base.Awake(); eh = gameObject.AddComponent <EvtHandler>(); eh.AddEvent(MyEvent.EventType.EnterNextZone, null); eh.AddEvent(MyEvent.EventType.BossSpawn, null); eh.AddEvent(MyEvent.EventType.BossDead, null); eh.AddEvent(MyEvent.EventType.LevelFinish, null); }