You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
360 B
17 lines
360 B
3 years ago
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using Animancer;
|
||
|
|
||
|
public class SimpleAnimEventHandler : MonoBehaviour
|
||
|
{
|
||
|
public AnimationEventReceiver OnEvent;
|
||
|
|
||
|
|
||
|
private void Event(AnimationEvent animationEvent)
|
||
|
{
|
||
|
OnEvent.SetFunctionName(nameof(Event));
|
||
|
OnEvent.HandleEvent(animationEvent);
|
||
|
}
|
||
|
}
|