void Start() { karakter.SetActive(false); SinirBar.SetActive(false); GostergeBar.SetActive(false); gamePanel.SetActive(false); InputField.text = PlayerPrefs.HasKey(NickNamePlayerPrefsKey) ? PlayerPrefs.GetString(NickNamePlayerPrefsKey) : ""; }
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); } } }