// Use this for initialization public override void Start() { base.Start(); state = ArcherState.attacking; characterType = CharacterConstants.CharacterType.enemy; //set our gnoll's abilities abilityOne = new MoveScript(this); abilityTwo = new RockThrowScript(this); }
//private float _animatorCutTime = 0.143f; private void Awake() { _rockThrowScript = GameObject.Find("MainCharacter").GetComponent <RockThrowScript>(); _characterControlScript = GameObject.Find("MainCharacter").GetComponent <CharacterControlScript>(); }