void Awake()
 {
     CheckpointReachedEvent.Register(OnCheckpointPassed);
     EnemyDeathEvent.Register(onEnemyKilled);
     GameOverEvent.Register(onGameOver);
     PickUpEvent.Register(onPickup);
     PlayerDamagedEvent.Register(onPlayerDamaged);
     PlayerDeathEvent.Register(onPlayerDeath);
     GameStartEvent.Register(onGameStart);
     respawnCounter    = Lives;
     RespawnFadeObject = GameObject.Find(RespawnFadeObjectName);
 }
Exemplo n.º 2
0
 void Start()
 {
     ResolutionScreen.SetActive(false);
     GameOverEvent.Register(onGameOver);
 }