Exemple #1
0
 public void ComSatConnectionStateChanged(ComSat.ConnectionState newState)
 {
     if (newState == ComSat.ConnectionState.Disconnected)
     {
         playerName.text = ComSat.instance.localPlayerName;
         gameObject.SetActive(true);
     }
     else
     {
         gameObject.SetActive(false);
     }
 }
Exemple #2
0
 public void ComSatConnectionStateChanged(ComSat.ConnectionState newState)
 {
     if (newState == ComSat.ConnectionState.Connected)
     {
         startGameButton.gameObject.SetActive(ComSat.instance.isHost);
         gameObject.SetActive(true);
     }
     else
     {
         gameObject.SetActive(false);
     }
 }