예제 #1
0
파일: HUD.cs 프로젝트: Li-Yeun/Pacman
 public void ChooseGhost()
 {
     AllGhost.SetActive(true);
     Characters.SetActive(false);
     PacmanError.SetActive(false);
     Spectator.SetActive(false);
     SpectateButton.SetActive(true);
 }
예제 #2
0
파일: HUD.cs 프로젝트: Li-Yeun/Pacman
    public void Spectate()
    {
        PlayerOnline Player = FindObjectOfType <PlayerOnline>();

        Player.Spectate();
        ChooseCharacter.SetActive(false);
        GhostError.SetActive(false);
        ColorGhostError.SetActive(false);
        Spectator.SetActive(false);
        SpectateButton.SetActive(false);
    }
예제 #3
0
파일: HUD.cs 프로젝트: Li-Yeun/Pacman
 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);
 }