Esempio n. 1
0
    public void tellShirt(int setShirt, NetworkMessageInfo info)
    {
        /*if (HackCheck(info))
         *  return;*/

        if (Network.isServer && this.shirt != -1 && ItemType.getType(this.shirt) == 4)
        {
            base.GetComponent <Inventory>().tryAddItem(this.shirt, 1);
        }
        this.shirt = setShirt;
        if (this.character != null)
        {
            this.character.shirt = this.shirt;
            this.character.wear();
        }
        if (base.networkView.isMine)
        {
            Viewmodel.wear();
        }
    }
Esempio n. 2
0
 public void tellAllCustom(int setFace, int setHair, int setSkinColor, int setHairColor, bool setArm)
 {
     this.face      = setFace;
     this.hair      = setHair;
     this.skinColor = setSkinColor;
     this.hairColor = setHairColor;
     this.arm       = setArm;
     base.GetComponent <Player>().arm = this.arm;
     if (this.character != null)
     {
         this.character.face      = this.face;
         this.character.hair      = this.hair;
         this.character.skinColor = this.skinColor;
         this.character.hairColor = this.hairColor;
         this.character.arm       = this.arm;
         this.character.wear();
     }
     if (base.networkView.isMine)
     {
         Viewmodel.wear();
     }
 }