public override void OnEnableUIPanel()
 {
     musicToggle.IsOn        = PlayerPrefsSaveSystem.GetIfMusicOn();
     sfxToggle.IsOn          = PlayerPrefsSaveSystem.GetIfSFXOn();
     nickNameInputField.text = PlayerPrefsSaveSystem.GetPlayerName();
 }
Пример #2
0
 public void OnConnectedToMaster()
 {
     NetworkStateDisplay.ShowNetworkState("Connected to the master server...");
     PhotonNetwork.LocalPlayer.NickName = PlayerPrefsSaveSystem.GetPlayerName();
     Debug.Log("Connected to the server");
 }