private void Start() { myUnit = this.transform.root.GetComponent <UnitScript>(); myShooting = this.transform.root.GetComponent <ShootingScript>(); myHowler = this.transform.root.GetComponent <Ability_Elves_Wolf_Howl>(); mySwapper = this.transform.root.GetComponent <Ability_Neutral_SwapWeapons>(); myThrower = this.transform.root.GetComponent <Ability_Elves_Assassin_DaggerThrow>(); myCry = this.transform.root.GetComponent <Ability_Hero_Knight_Battlecry>(); myPikeman = this.transform.root.GetComponent <Ability_Human_Pikeman_SpearBarricade>(); }
protected override void ChangableStart() { CurrentArrows = StartingArrows; swapWeapons = GetComponent <Ability_Neutral_SwapWeapons>(); CombatController.Instance.AttackEvent += OnAttack; }