public void UnloadGameScene() { if (isSceneLoaded && PhotonNetwork.IsMasterClient) { PUN_Events.UnloadLevelEvent(); } }
public void LoadGameScene(int scene) { if (!isSceneLoaded && PhotonNetwork.IsMasterClient) { PUN_Events.LoadLevelEvent(scene); } }
// host will send event to reset public void HostResetGame() { if (!PhotonNetwork.IsMasterClient) { return; } PUN_Events.ResetGameEvent(); }
// host will send event to start private void HostStartGame() { if (!PhotonNetwork.IsMasterClient) { return; } PUN_Events.StartGameEvent(); }