I have a PlayerController class extending NetworkBehaviour.
This is for a 2 player game.
In the OnStartClient method I have
public override void OnStartClient ()
{
base.OnStartClient ();
if (isLocalPlayer)
{
Debug.Log("YES localPlayer");
}
else
{
Debug.Log("YES remotePlayer");
}
}
I see ‘YES remotePlayer’ twice when the game starts. Why? Shouldn’t I see ‘YES localPlayer’ as well?
