Exemple #1
0
 void Start()
 {
     karakter.SetActive(false);
     SinirBar.SetActive(false);
     GostergeBar.SetActive(false);
     gamePanel.SetActive(false);
     InputField.text = PlayerPrefs.HasKey(NickNamePlayerPrefsKey) ? PlayerPrefs.GetString(NickNamePlayerPrefsKey) : "";
 }
Exemple #2
0
 void Update()
 {
     if (PhotonNetwork.inRoom)
     {
         if (PhotonNetwork.room.PlayerCount == 2)
         {
             karakter.SetActive(true);
             SinirBar.SetActive(true);
             GostergeBar.SetActive(true);
             gamePanel.SetActive(true);
             loginPanel.SetActive(false);
         }
     }
 }