Exemple #1
0
    void Start()
    {
        myNetChar = gameObject.GetComponent <NetworkCharacter> ();
        if (hasWeapon)
        {
            sword = transform.Find("Sword").GetComponent <Sword>();
        }

        instance     = this;
        animator     = gameObject.GetComponent <Animator>();
        packAnimator = transform.Find("BackSlot").transform.Find("Jetpack").GetComponent <Animator>();
    }
Exemple #2
0
 void Start()
 {
     myActionControl = gameObject.GetComponent <CharacterActionControl>();
     //playerName = gameObject.GetComponent<PhotonView>().owner.name;
 }