unity 响应spine事件
这是官方文档
private void CreateSpine()
{
......................
AnimationState state = ...
state.Event += OnStateEvent;
}
private void OnStateEvent(TrackEntry trackentry, Event e)
{
if (e.Data.Name == "eventName" )
{
Debug.Log("执行方法");
}
}