void OnConnectedToServer() {
Debug.Log (“Player Connected”);
SpawnPlayer();
Debug.Log (“Player Spawned”);
}
private void SpawnPlayer() {
Network.Instantiate(playerPrefab, new Vector3(5f, 5f, 5f), Quaternion.identity, 0);
}
There are no playerPrefabs in the scene. This is my console log:
Server Initialized
Received pong from 192.168.56.1:25000
Received pong from 192.168.2.105:25000
Player Connected
Player Spawned
There are 2 audio listeners in the scene. Please ensure there is always exactly one audio listener in the scene.
There are 2 audio listeners in the scene. Please ensure there is always exactly one audio listener in the scene.
What could be causing this?