多轮审查和修复
This commit is contained in:
17
Assets/Scripts/Animation/IAnimationEventHandler.cs
Normal file
17
Assets/Scripts/Animation/IAnimationEventHandler.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace BaseGames.Animation
|
||||
{
|
||||
/// <summary>
|
||||
/// 动画事件接收接口(架构 §AnimationModule)。
|
||||
/// 由 PlayerAnimationEvents / EnemyAnimationEvents 实现。
|
||||
/// AnimationEventBinder 将 Animancer 回调路由至此接口,避免硬耦合。
|
||||
/// </summary>
|
||||
public interface IAnimationEventHandler
|
||||
{
|
||||
/// <summary>
|
||||
/// 处理由 Animancer ClipTransition 触发的动画事件。
|
||||
/// </summary>
|
||||
/// <param name="type">事件类型。</param>
|
||||
/// <param name="payload">附加字符串数据(可为 null 或空)。</param>
|
||||
void HandleEvent(AnimationEventType type, string payload);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user