コード例 #1
0
        private void Start()
        {
            if (SavedData.PlayerName() != "")
            {
                NameInput.text = SavedData.PlayerName();
            }

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