27 lines
660 B
C#
27 lines
660 B
C#
|
using UnityEngine;
|
||
|
|
||
|
// ReSharper disable once CheckNamespace
|
||
|
namespace BlueWaterProject
|
||
|
{
|
||
|
public class CombatPlayerAnimationEventController : MonoBehaviour
|
||
|
{
|
||
|
private CombatPlayer combatPlayer;
|
||
|
|
||
|
private void Awake()
|
||
|
{
|
||
|
combatPlayer = GetComponentInParent<CombatPlayer>();
|
||
|
}
|
||
|
|
||
|
public void CheckComboAttack()
|
||
|
{
|
||
|
if (combatPlayer.IsComboAttacking) return;
|
||
|
|
||
|
combatPlayer.Animator.SetBool(combatPlayer.isAttackingHash, false);
|
||
|
}
|
||
|
|
||
|
public void AttackTiming()
|
||
|
{
|
||
|
combatPlayer.AttackTiming();
|
||
|
}
|
||
|
}
|
||
|
}
|