public override void Attack(PlayerAttack attack, BattleCombatant target) { currentAttack = attack; currentAttackTarget = target; if (attack.Name == "Fried Chicken Smoothie") { anim.Play("Jumping"); playSound(healSound); currentAttackTarget.Heal(); } else if (attack.Name == "All-Purpose Slice") { initialPosition = transform.position; AnimationInProgress = true; currentAnimation = AnimationSequence.JumpForward; attackAnimationState = AttackAnimationState.NeedsToStart; } else if (attack.Name == "Sales Pitch") { initialPosition = transform.position; AnimationInProgress = true; currentAnimation = AnimationSequence.SalesPitch; attackAnimationState = AttackAnimationState.NeedsToStart; } }
public override void Attack(PlayerAttack attack, BattleCombatant target) { currentAttack = attack; currentAttackTarget = target; if (attack.Name == "Slam Dunk") { AnimationInProgress = true; currentAnimation = AnimationSequence.PreparingToSlam; attackAnimationState = AttackAnimationState.NeedsToStart; } else if (attack.Name == "Gatorade\u2122 Sports Drink") { playSound(healSound); currentAttackTarget.Heal(); } }
public override void Attack(PlayerAttack attack, BattleCombatant target) { currentAttack = attack; currentAttackTarget = target; if (attack.Name == "Gas Blast") { initialPosition = transform.position; AnimationInProgress = true; currentAnimation = AnimationSequence.FlyingTowardsTarget; attackAnimationState = AttackAnimationState.NeedsToStart; } else if (attack.Name == "Can of Beans") { playSound(HealSound); currentAttackTarget.Heal(); } }
public override void Attack(PlayerAttack attack, BattleCombatant target) { currentAttack = attack; currentAttackTarget = target; if(attack.Name == "Slam Dunk") { AnimationInProgress = true; currentAnimation = AnimationSequence.PreparingToSlam; attackAnimationState = AttackAnimationState.NeedsToStart; } else if(attack.Name == "Gatorade\u2122 Sports Drink") { playSound(healSound); currentAttackTarget.Heal(); } }
public override void Attack(PlayerAttack attack, BattleCombatant target) { currentAttack = attack; currentAttackTarget = target; if(attack.Name == "Fried Chicken Smoothie") { anim.Play("Jumping"); playSound(healSound); currentAttackTarget.Heal(); } else if(attack.Name == "All-Purpose Slice") { initialPosition = transform.position; AnimationInProgress = true; currentAnimation = AnimationSequence.JumpForward; attackAnimationState = AttackAnimationState.NeedsToStart; } else if(attack.Name == "Sales Pitch") { initialPosition = transform.position; AnimationInProgress = true; currentAnimation = AnimationSequence.SalesPitch; attackAnimationState = AttackAnimationState.NeedsToStart; } }
public override void Attack(PlayerAttack attack, BattleCombatant target) { currentAttack = attack; currentAttackTarget = target; if(attack.Name == "Gas Blast") { initialPosition = transform.position; AnimationInProgress = true; currentAnimation = AnimationSequence.FlyingTowardsTarget; attackAnimationState = AttackAnimationState.NeedsToStart; } else if(attack.Name == "Can of Beans") { playSound(HealSound); currentAttackTarget.Heal(); } }