public void initialize_components(IPlayerCombatEvent combatEvent) { // Initialize player components this.spellAttack = this.GetComponentInChildren <PlayerSpellAttack> (); this.meleeAttack = this.GetComponentInChildren <PlayerMeleeAttack> (); this.spellAttack.initialize_components(this.attackPoint); this.meleeAttack.initialize_components(combatEvent, this.attackPoint); }
private bool attackReady = true; // If we are ready to attack again #region INITIALIZE public void initialize_components(IPlayerCombatEvent combatEvent, Transform attackPoint) { // Initialize attack components this.combatEvent = combatEvent; this.attackPoint = attackPoint; }