2023-10-11 20:26:45 +00:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
|
|
namespace BlueWaterProject
|
|
|
|
{
|
|
|
|
public class AnimatorBridge : MonoBehaviour
|
|
|
|
{
|
2023-10-12 06:32:02 +00:00
|
|
|
[SerializeField] private IAnimatorBridge iAnimatorBridge;
|
2023-10-11 20:26:45 +00:00
|
|
|
private void Awake()
|
|
|
|
{
|
2023-10-12 06:32:02 +00:00
|
|
|
iAnimatorBridge = GetComponentInParent<IAnimatorBridge>();
|
|
|
|
if (iAnimatorBridge == null)
|
|
|
|
{
|
|
|
|
print("부모 스크립트 중 IAnimatorBridge 인터페이스를 가지고 있는 스크립트가 없습니다.");
|
|
|
|
}
|
2023-10-11 20:26:45 +00:00
|
|
|
}
|
|
|
|
|
2023-10-12 06:32:02 +00:00
|
|
|
public void AttackTiming() => iAnimatorBridge.AttackTiming();
|
|
|
|
public void SetIsAttacking(int boolValue) => iAnimatorBridge.SetIsAttacking(boolValue);
|
2023-10-11 20:26:45 +00:00
|
|
|
}
|
|
|
|
}
|