void Awake() { globs = GameObject.FindGameObjectWithTag("GameController").GetComponent <Globals>(); anim = new Animation_Handler(gameObject.GetComponent <Animator> ()); currStance = Stances.Stand; charController = GetComponent <CharacterController> (); }
void Start() { mov = GetComponent <Movement_Handler> (); ik = FindInChildren(transform, "Left Limb IK").GetComponent <ArmIK>(); weaponsObjects = new Weapon[weaponsInInventory.Length]; for (int i = 0; i < weaponsInInventory.Length; i++) { weaponsObjects[i] = weaponsInInventory[i].GetComponent <Weapon>(); } currWeaponIndex = 0; currWeapon = weaponsObjects[currWeaponIndex]; anim = new Animation_Handler(gameObject.GetComponent <Animator> ()); WeaponTransition(0); }