コード例 #1
0
    public void SetRoupa(PlayerRoupa roupa)
    {
        gerente.SetRoupa(roupa);

        switch (roupa)
        {
        case PlayerRoupa.luigi:
            PlayerRede = luigi;
            break;

        case PlayerRoupa.fogo:
            PlayerRede = fogo;
            break;

        case PlayerRoupa.mimico:
            PlayerRede = mimico;
            break;

        case PlayerRoupa.mario:
            PlayerRede = mario;
            break;

        case PlayerRoupa.wario:
            PlayerRede = wario;
            break;
        }
    }
コード例 #2
0
    public void SetRoupa(PlayerRoupa roupa)
    {
        switch (roupa)
        {
        case PlayerRoupa.luigi:
            mat.mainTexture = marioLuigi;
            break;

        case PlayerRoupa.mario:
            mat.mainTexture = mario;
            break;

        case PlayerRoupa.fogo:
            mat.mainTexture = marioFogo;
            break;

        case PlayerRoupa.mimico:
            mat.mainTexture = marioMimic;
            break;

        case PlayerRoupa.wario:
            mat.mainTexture = marioWario;
            break;
        }
    }
コード例 #3
0
    bool TellAllOurName(String name, string tagq, PlayerRoupa roupa, NetworkMessageInfo info)
    {
        if (info.sender == GetComponent <NetworkView>().owner&& !GetComponent <NetworkView>().isMine)
        {
            // this.name = name;
            tag = tagq;

            SetRoupa(roupa);
            TextMesh nametext = this.gameObject.GetComponentsInChildren <TextMesh>()[0];
            nametext.text = this.tag;


            Debug.Log(roupa.ToString());
        }


        return(true);
    }
コード例 #4
0
 public void SetRoupa(PlayerRoupa roupaq)
 {
     roupa = roupaq;
 }