Esempio n. 1
0
 void Start()
 {
     votingSystem = new VoteMaster();
     if (PhotonNetwork.IsConnected)
     {
         if ((bool)PhotonNetwork.LocalPlayer.CustomProperties["isMod"])
         {
             if (XRDevice.isPresent)
             {
                 // activate moderator menu for...moderator
                 toggleModMenuvr.gameObject.SetActive(true);
             }
             else
             {
                 // activate moderator menu for...moderator
                 toggleModMenu.gameObject.SetActive(true);
             }
         }
     }
     toggleButtons(false);
 }