Returns a string of "NetID:value".
void GetNetIdentity () { playerNetworkID = GetComponent<NetworkIdentity> ().netId; CmdSetUID ("Player_" + playerNetworkID.ToString ()); }
void GetNetIdentity() { playerNetID = GetComponent<NetworkIdentity> ().netId; CmdTellServerMyIdentity ("Player " + playerNetID.ToString ()); }
private void GetNetIdentity() { playerNetID = GetComponent<NetworkIdentity>().netId; if (isServer) { CmdTellServerMyIdentity("Player " + playerNetID.ToString() + " (host)"); } else { CmdTellServerMyIdentity("Player " + playerNetID.ToString()); } }
void getIdentity() { mynetworkID = GetComponent<NetworkIdentity>().netId; CmdSendNameToServer(mynetworkID.ToString()); Debug.Log(mynetworkID.ToString()); }