private void OnChangeTop(int t)
 {
     if (isLocalPlayer)
     {
         return;
     }
     tid = t;
     this.transform.Find("Tops").GetComponent <Renderer>().material.mainTexture = CharacterCustomiser.GetTop(tid, this.name);
 }
    // Use this for initialization
    void Start()
    {
        animator = GetComponentInChildren <Animator>();
        animator.SetBool("Idling", true);
        if (!isLocalPlayer)
        {
            this.transform.Find("Tops").GetComponent <Renderer>().material.mainTexture =
                CharacterCustomiser.GetTop(tid, this.name);
        }

        if (isLocalPlayer)
        {
            GetComponent <PlayerController>().enabled = true;
            CameraFollow360.player          = this.gameObject.transform;
            CharacterCustomiser.myCharacter = this.gameObject;
            this.transform.Find("Tops").GetComponent <Renderer>().material.mainTexture =
                CharacterCustomiser.GetTop(CharacterCustomiser.GetTopId(), this.name);
            CmdChangeTop(CharacterCustomiser.GetTopId());
        }
        else
        {
            GetComponent <PlayerController>().enabled = false;
        }
    }
 // Use this for initialization
 void Start()
 {
     CC = this;
 }
 public void CmdChangeTop(int t)
 {
     tid = t;
     this.transform.Find("Tops").GetComponent <Renderer>().material.mainTexture = CharacterCustomiser.GetTop(tid, this.name);
 }