コード例 #1
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);
    }
コード例 #2
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);
 }
コード例 #3
0
ファイル: HUD.cs プロジェクト: Li-Yeun/Pacman
 public void ColorGhostErrorMessage()
 {
     ColorGhostError.SetActive(true);
 }