Ejemplo n.º 1
0
        private void Start()
        {
            if (SavedData.PlayerName() != "")
            {
                NameInput.text = SavedData.PlayerName();
            }

            StatsText.text = "Wins: " + SavedData.Wins().ToString() + "\nPanets Destroyed: " + SavedData.Kills().ToString();
        }
Ejemplo n.º 2
0
 public void HandleButtonJoinRoom(string room)
 {
     PhotonNetwork.NickName = SavedData.PlayerName();
     PhotonNetwork.JoinRoom(room);
 }
Ejemplo n.º 3
0
 public void Button_CreateRoom()
 {
     PhotonNetwork.NickName = SavedData.PlayerName();
     PhotonNetwork.CreateRoom("Room " + Random.Range(0, 9999));
 }