Skip to content

Commit

Permalink
#5 Networked scene change
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirdlc committed Mar 21, 2017
1 parent 21464ad commit fb4074e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Assets/Scripts/Utility/SceneSwitch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ private void OnTriggerStay(Collider other)
}

Cursor.visible = false;

#if NETWORKING
UnityEngine.Networking.NetworkManager.singleton.ServerChangeScene(sceneName);
#else
SceneManager.LoadScene(sceneName);
#endif
}
}
}

0 comments on commit fb4074e

Please sign in to comment.