SceneLoadLocalDone not called after BoltNetwork.LoadScene

My test successfully loaded the "bank" scene. But never instantiate the prefabs in the sceneloadlocaldone.

public override void BoltStartDone()
{
if (BoltNetwork.isServer)
{
//BoltNetwork.EnableLanBroadcast();
BoltNetwork.SetServerInfo("Test Game", null);
Debug.Log("BoltStartDone\n");
BoltNetwork.LoadScene("Bank");
}



}

public class NetworkCallbacks : Bolt.GlobalEventListener
{
[BoltGlobalBehaviour]
public override void SceneLoadLocalDone(string map)
{
var pos = new Vector3(Random.Range(3, 4), -0.984f, Random.Range(41.01f, 43));

BoltNetwork.Instantiate(BoltPrefabs.Players, pos, Quaternion.identity);
}

}

Comments

Sign In or Register to comment.