public void PerformComboAttackIfQueued() { if (readyForAttackAnimation && queuedAttack) { if (!queuedAttackAnimation.Contains("Crouch") && !queuedAttackAnimation.Contains("Jump")) { anim.Rebind(); } anim.Play(queuedAttackAnimation); fighterController.SetAttackDamage(queuedAttackDamage); fighterController.SetAttackType(queuedAttackType); fighterController.ConsumeSpecial(queuedAttackSpecial); fighterController.StartAttack(); readyForAttackAnimation = false; queuedAttack = false; queuedAttackAnimation = ""; queuedAttackDamage = 0; queuedAttackType = AttackType.Flinch; queuedAttackSpecial = 0; } }