ToString() 공개 메소드

Returns a string of "NetID:value".

public ToString ( ) : string
리턴 string
	void GetNetIdentity () {
		playerNetworkID = GetComponent<NetworkIdentity> ().netId;
		CmdSetUID ("Player_" + playerNetworkID.ToString ());
	}
예제 #2
0
 void GetNetIdentity()
 {
     playerNetID = GetComponent<NetworkIdentity> ().netId;
     CmdTellServerMyIdentity ("Player " + playerNetID.ToString ());
 }
예제 #3
0
 private void GetNetIdentity()
 {
     playerNetID = GetComponent<NetworkIdentity>().netId;
     if (isServer)
     {
         CmdTellServerMyIdentity("Player " + playerNetID.ToString() + " (host)");
     }
     else
     {
         CmdTellServerMyIdentity("Player " + playerNetID.ToString());
     }
 }
예제 #4
0
    void getIdentity()
    {
        mynetworkID = GetComponent<NetworkIdentity>().netId;

        CmdSendNameToServer(mynetworkID.ToString());
        Debug.Log(mynetworkID.ToString());
    }