FiE-Game/Assets/Cinema Director/Cutscene Items/Actor Items/Animation/RewindAnimationEvent.cs
2023-07-27 00:47:00 +05:00

29 lines
No EOL
705 B
C#

using UnityEngine;
using System.Collections;
namespace CinemaDirector
{
[CutsceneItemAttribute("Animation", "Rewind Animation", CutsceneItemGenre.ActorItem)]
public class RewindAnimationEvent : CinemaActorEvent
{
public string Animation = string.Empty;
public override void Trigger(GameObject actor)
{
if (actor != null)
{
Animation animation = actor.GetComponent<Animation>();
if (!animation)
{
return;
}
animation.Rewind(Animation);
}
}
public override void Reverse(GameObject actor)
{
}
}
}