public void Spectate() { PlayerOnline Player = FindObjectOfType <PlayerOnline>(); Player.Spectate(); ChooseCharacter.SetActive(false); GhostError.SetActive(false); ColorGhostError.SetActive(false); Spectator.SetActive(false); SpectateButton.SetActive(false); }
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); }
public void ColorGhostErrorMessage() { ColorGhostError.SetActive(true); }