Awake and start functions execute twice.
Both on the server and the client.
On the server when the client connects, on the client just 2 times after eatchother.
Anyone with an idea’s what may cause this behavior?
Because of this my server spawns 3 players (instead of 2)
and on my client there are 4 (instead of 2)
Code:
function Awake()
{
if(Network.isServer)
{
Debug.Log("Server Awake function");
}
else if(Network.isClient)
{
Debug.Log("Client Awake function");
}
}
function Start()
{
if(Network.isServer)
{
Debug.Log("Server start function");
}
else if(Network.isClient)
{
Debug.Log("Client Start function");
}
}
Result: