Skip to content

Commit

Permalink
bugfix for pc as host
Browse files Browse the repository at this point in the history
  • Loading branch information
EyCrime committed Sep 26, 2022
1 parent 5eaff32 commit a0746e4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Assets/Scripts/Managers/StartSceneManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ public void OnClickedStartButton()
if (!PhotonNetwork.IsMasterClient)
infoTextPanel.WriteLine("Sorry, only your boss is allowed to start the game.");
else
{
StartCoroutine(LoadGame());
{
LoadGame();
}
}

Expand All @@ -326,10 +326,10 @@ public void OnClickedQuitButton()
/// <summary>
/// Load game scene.
/// </summary>
private IEnumerator LoadGame()
private void LoadGame()
{
fadeScreen.FadeOut();
yield return new WaitForSeconds(fadeScreen.fadeDuration);
//fadeScreen.FadeOut();
//yield return new WaitForSeconds(fadeScreen.fadeDuration);

PhotonNetwork.LoadLevel(gameSceneName);
}
Expand Down

0 comments on commit a0746e4

Please sign in to comment.