Super Knight : Enter the Dungeon
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.
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.Events;
|
|
|
|
|
using UnityEngine.Serialization;
|
|
|
|
|
|
|
|
|
|
public class EventAnimationClip : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
[System.Serializable]
|
|
|
|
|
public class AnimationStartEvent : UnityEvent { }
|
|
|
|
|
[FormerlySerializedAs("onAnimationStart")]
|
|
|
|
|
[SerializeField]
|
|
|
|
|
[Space(10)]
|
|
|
|
|
private AnimationStartEvent m_OnAnimationStartd = new AnimationStartEvent();
|
|
|
|
|
public AnimationStartEvent OnAnimationStartd
|
|
|
|
|
{
|
|
|
|
|
get { return m_OnAnimationStartd; }
|
|
|
|
|
set { m_OnAnimationStartd = value; }
|
|
|
|
|
}
|
|
|
|
|
public void AnimationStart()
|
|
|
|
|
{
|
|
|
|
|
OnAnimationStartd.Invoke();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Serializable]
|
|
|
|
|
public class AnimationEndEvent : UnityEvent { }
|
|
|
|
|
[FormerlySerializedAs("onAnimationEnd")]
|
|
|
|
|
[SerializeField]
|
|
|
|
|
[Space(10)]
|
|
|
|
|
private AnimationEndEvent m_OnAnimationEndd = new AnimationEndEvent();
|
|
|
|
|
public AnimationEndEvent OnAnimationEndd
|
|
|
|
|
{
|
|
|
|
|
get { return m_OnAnimationEndd; }
|
|
|
|
|
set { m_OnAnimationEndd = value; }
|
|
|
|
|
}
|
|
|
|
|
public void AnimationEnd()
|
|
|
|
|
{
|
|
|
|
|
OnAnimationEndd.Invoke();
|
|
|
|
|
}
|
|
|
|
|
}
|