29 lines
1.7 KiB
C#
29 lines
1.7 KiB
C#
|
|
// ─────────────────────────────────────────────────────────────────────────────
|
||
|
|
// WLAnimEventSink.cs — 팩 애니메이션 이벤트 받는 곳(아무것도 안 함) · PC 애니메이터 오브젝트에 1개 (#989)
|
||
|
|
//
|
||
|
|
// PD 원문(#989 · 2026-10-30): 「회피 중 발생한 에러를 체크해보고 원인을 수정해줘.」
|
||
|
|
// ■ 원인(실측) — 원본 직업 컨트롤러 dodge 상태 클립이 ExplosiveLLC 팩 DashForward(pcanim_bluntshield · mage · sorceress · summoner = 'Land' ·
|
||
|
|
// pcanim_twohand = 'FootR' · 'FootL')라 그 이벤트를 받을 함수가 PC 에 없어 회피마다 「AnimationEvent 'Land' … has no receiver!」 오류.
|
||
|
|
// ■ 처리 — 팩 이벤트 이름의 빈 함수를 가진 이 컴포넌트를 붙인다(클립 · 컨트롤러 · 원본 팩 무수정). 붙이는 곳 = WLWeaponFitter.OnEnable · WLDodgeStyle.Do.
|
||
|
|
// ─────────────────────────────────────────────────────────────────────────────
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
namespace WL.Combat
|
||
|
|
{
|
||
|
|
public sealed class WLAnimEventSink : MonoBehaviour
|
||
|
|
{
|
||
|
|
public static int Added;
|
||
|
|
|
||
|
|
public static void Ensure(GameObject go)
|
||
|
|
{
|
||
|
|
if (go == null || go.GetComponent<WLAnimEventSink>() != null) return;
|
||
|
|
go.AddComponent<WLAnimEventSink>();
|
||
|
|
Added++;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void Land() { }
|
||
|
|
public void FootR() { }
|
||
|
|
public void FootL() { }
|
||
|
|
}
|
||
|
|
}
|