Exemple #1
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);
    }
Exemple #2
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);
 }
Exemple #3
0
 public void ColorGhostErrorMessage()
 {
     ColorGhostError.SetActive(true);
 }