I have a character that has 3 animation states that are started using a trigger. There are two special attacks, which happen upon X chance when clicking, and then the default attack. Everything works fine when clicking fairly rapidly, but if I spam click as fast as I can, the special attack states will never start, then when I stop clicking, both the special attack states play back to back even with no clicks, almost like they got queued up somehow.
if (Input.GetMouseButtonDown(0)) {
if (animator) {
if (SmashAttackChance()) {
animator.SetTrigger("smash");
} else if (NukeAttackChance()) {
animator.SetTrigger("nuke");
} else {
animator.SetTrigger("attack");
}
}
}