private void Awake() { this.characterBody = this.gameObject.GetComponent <CharacterBody>(); this.childLocator = this.gameObject.GetComponentInChildren <ChildLocator>(); this.model = this.GetComponentInChildren <CharacterModel>(); this.tracker = this.gameObject.GetComponent <HenryTracker>(); Invoke("CheckWeapon", 0.2f); }
private void Awake() { this.characterBody = this.gameObject.GetComponent <CharacterBody>(); this.childLocator = this.gameObject.GetComponentInChildren <ChildLocator>(); this.model = this.gameObject.GetComponentInChildren <CharacterModel>(); this.tracker = this.gameObject.GetComponent <HenryTracker>(); this.modelAnimator = this.gameObject.GetComponentInChildren <Animator>(); this.weaponMode = WeaponMode.Sword; this.currentEnergy = this.maxEnergy; }