Spine在U3d下的动画事件处理

来源:互联网 发布:cs绘画软件 编辑:程序博客网 时间:2024/05/16 14:30
 //获取动画事件
        public void AddEvent()
        {
            GetComponent<SkeletonAnimation>().AddEventListener(TestEvent);
        }

       public void TestEvent(Spine.AnimationState state, int trackIndex, Spine.Event e)
        {
            if (e.ToString() == "fuckme")
            {
                Debug.Log("I'm in fucked");
            }

}

没啥好说的 直接上代码

0 3