Пример #1
0
 public void UnloadGameScene()
 {
     if (isSceneLoaded && PhotonNetwork.IsMasterClient)
     {
         PUN_Events.UnloadLevelEvent();
     }
 }
Пример #2
0
 public void LoadGameScene(int scene)
 {
     if (!isSceneLoaded && PhotonNetwork.IsMasterClient)
     {
         PUN_Events.LoadLevelEvent(scene);
     }
 }
Пример #3
0
 // host will send event to reset
 public void HostResetGame()
 {
     if (!PhotonNetwork.IsMasterClient)
     {
         return;
     }
     PUN_Events.ResetGameEvent();
 }
Пример #4
0
 // host will send event to start
 private void HostStartGame()
 {
     if (!PhotonNetwork.IsMasterClient)
     {
         return;
     }
     PUN_Events.StartGameEvent();
 }