Exemplo n.º 1
0
 void MakeInstance()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Exemplo n.º 2
0
    private void PlayerSpawnAt(Vector3 positionToSpawn)
    {
        Transform      newPlayer        = Instantiate(playerClone, positionToSpawn, Quaternion.identity);
        PenguinControl newPlayerControl = newPlayer.GetComponent <PenguinControl>();

        //newPlayerControl.IAm(this);
        player.Add(newPlayerControl);
    }
Exemplo n.º 3
0
 public void PlayerDestroyed(PenguinControl penguin)
 {
     player.Remove(penguin);
 }