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

isLocalPlayer always false in Awake() ?

$
0
0
I have a PlayerManager component attached to the player prefab

void Awake ()
{
Debug.Log ("Awake Is Local Player: " + isLocalPlayer);
// getComponents for variables
}

void Start ()
{
Debug.Log ("Start Is Local Player: " + isLocalPlayer);
// Initial setup
}

the awake returns false, and true for the start function? Just found it odd as I was placing (!isLocalPlayer) return; and not expecting it to!

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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