
+ SPUM 프리팹 회전 값 변경 (0, 90, 0) -> (0, 0, 0) + 프리팹 원본 보존(씬에 Viking 따로 사용) + ProjectSetting Physics 수정 Player <-> Props 충돌 추가 + IAnimationBridge 인터페이스 추가 + Crewmate(동료) class 추가 + Enemy MagicOrk 추가 Magic particleSystem 기능 추가 중
21 lines
705 B
C#
21 lines
705 B
C#
using UnityEngine;
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace BlueWaterProject
|
|
{
|
|
public class AnimatorBridge : MonoBehaviour
|
|
{
|
|
[SerializeField] private IAnimatorBridge iAnimatorBridge;
|
|
private void Awake()
|
|
{
|
|
iAnimatorBridge = GetComponentInParent<IAnimatorBridge>();
|
|
if (iAnimatorBridge == null)
|
|
{
|
|
print("부모 스크립트 중 IAnimatorBridge 인터페이스를 가지고 있는 스크립트가 없습니다.");
|
|
}
|
|
}
|
|
|
|
public void AttackTiming() => iAnimatorBridge.AttackTiming();
|
|
public void SetIsAttacking(int boolValue) => iAnimatorBridge.SetIsAttacking(boolValue);
|
|
}
|
|
} |