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>(); }
void Start() { myActionControl = gameObject.GetComponent <CharacterActionControl>(); //playerName = gameObject.GetComponent<PhotonView>().owner.name; }