Beispiel #1
0
 void LoseLife()
 {
     PlayerSpawner.lives--;
     livesKeeper.SetLives(PlayerSpawner.lives);
     Destroy(gameObject);
     Invoke("PlayerSpawner.SpawnPlayers", 5);
 }
    private void Start()
    {
        explosion = transform.Find("ExplosionEffect");

        if (livesKeeper)
        {
            livesKeeper.SetLives(lives);
        }
    }