private void Start() { if (SavedData.PlayerName() != "") { NameInput.text = SavedData.PlayerName(); } StatsText.text = "Wins: " + SavedData.Wins().ToString() + "\nPanets Destroyed: " + SavedData.Kills().ToString(); }
public void HandleButtonJoinRoom(string room) { PhotonNetwork.NickName = SavedData.PlayerName(); PhotonNetwork.JoinRoom(room); }
public void Button_CreateRoom() { PhotonNetwork.NickName = SavedData.PlayerName(); PhotonNetwork.CreateRoom("Room " + Random.Range(0, 9999)); }