Exemplo n.º 1
0
 public void ChooseGhost()
 {
     AllGhost.SetActive(true);
     Characters.SetActive(false);
     PacmanError.SetActive(false);
     Spectator.SetActive(false);
     SpectateButton.SetActive(true);
 }
Exemplo n.º 2
0
    public void Spectate()
    {
        PlayerOnline Player = FindObjectOfType <PlayerOnline>();

        Player.Spectate();
        ChooseCharacter.SetActive(false);
        GhostError.SetActive(false);
        ColorGhostError.SetActive(false);
        Spectator.SetActive(false);
        SpectateButton.SetActive(false);
    }
Exemplo n.º 3
0
 public void ChooseColorGhost(int number)
 {
     PlayerOnline[] Player = FindObjectsOfType <PlayerOnline>();
     foreach (PlayerOnline player in Player)
     {
         player.SpawnGhost(number);
     }
     ChooseCharacter.SetActive(false);
     PacmanError.SetActive(false);
     ColorGhostError.SetActive(false);
     SpectateButton.SetActive(false);
 }