Check if an animation can interrupt another based on priority
Current animation state
Requested animation state
Whether current animation is interruptible
Whether the requested animation can interrupt the current one
// Hit can interrupt attackcanInterrupt("attack", "hit", true); // true// Attack cannot interrupt hitcanInterrupt("hit", "attack", true); // false// Nothing can interrupt non-interruptible animationscanInterrupt("attack", "hit", false); // false (unless same priority) Copy
// Hit can interrupt attackcanInterrupt("attack", "hit", true); // true// Attack cannot interrupt hitcanInterrupt("hit", "attack", true); // false// Nothing can interrupt non-interruptible animationscanInterrupt("attack", "hit", false); // false (unless same priority)
중단가능여부확인
Check if an animation can interrupt another based on priority