Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Lobby manager problem - Player Object running Start() and Awake() before gamescene .

$
0
0
I had my game working fine with the networkmanager so decided to now move to using the lobby asset. With network manager I create my players in this method:

Code (CSharp):
  1.     public override void OnServerAddPlayer(NetworkConnection conn, short playerControllerId)
  2.     {
  3.         if (conn.connectionId == 0)
  4.         {
  5.             Vector3 pos = new Vector3(-8.5f, 0, 0);
  6.             Quaternion rot = Quaternion.Euler(new Vector3(0, 0, -90));
  7.             GameObject player =...
Lobby manager problem - Player Object running Start() and Awake() before gamescene .

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>