Пример #1
0
    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;
        }
    }
Пример #2
0
    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();
        }
    }
Пример #3
0
    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();
        }
    }
Пример #4
0
	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();
		}

		
	}
Пример #5
0
	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;
		}

	}
Пример #6
0
	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();
			
		}

		
	}