Exemplo n.º 1
0
    void CmdSetColor(Color INPUT)
    {
        UserNameMesh.color = INPUT;

        if (isServer)
        {
            foreach (var BrainName in FindObjectsOfType <GetUserName>())
            {
                if (BrainName != this)
                {
                    BrainName.RpcSetColor(BrainName.GetComponentInChildren <TextMesh>().color);
                }
            }
        }
    }
Exemplo n.º 2
0
    void CmdSetName(string INPUT)
    {
        UserNameMesh.text = INPUT;

        if (isServer)
        {
            foreach (var BrainName in FindObjectsOfType <GetUserName>())
            {
                if (BrainName != this)
                {
                    BrainName.RpcSetName(BrainName.GetComponentInChildren <TextMesh>().text);
                }
            }
        }
    }