2024-01-24 00:48:26 +00:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
|
|
namespace BlueWaterProject
|
|
|
|
{
|
|
|
|
public class CombatPlayerAnimationEventController : MonoBehaviour
|
|
|
|
{
|
2024-01-26 16:26:50 +00:00
|
|
|
private CombatPlayerController combatPlayerController;
|
2024-01-24 00:48:26 +00:00
|
|
|
|
|
|
|
private void Awake()
|
|
|
|
{
|
2024-01-26 16:26:50 +00:00
|
|
|
combatPlayerController = GetComponentInParent<CombatPlayerController>();
|
|
|
|
if (!combatPlayerController)
|
|
|
|
{
|
|
|
|
print("애니메이션 이벤트 컨트롤러가 없습니다.");
|
|
|
|
}
|
2024-01-24 00:48:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void CheckComboAttack()
|
|
|
|
{
|
2024-01-26 16:26:50 +00:00
|
|
|
if (combatPlayerController.GetIsComboAttacking()) return;
|
2024-01-24 00:48:26 +00:00
|
|
|
|
2024-01-26 16:26:50 +00:00
|
|
|
combatPlayerController.MyComponents.animator.SetBool(CombatPlayerController.IsAttackingHash, false);
|
2024-01-24 00:48:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void AttackTiming()
|
|
|
|
{
|
2024-01-26 16:26:50 +00:00
|
|
|
combatPlayerController.AttackTiming();
|
2024-01-24 00:48:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|