mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-28 08:07:59 +01:00
29 lines
No EOL
699 B
C#
29 lines
No EOL
699 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
namespace CinemaDirector
|
|
{
|
|
[CutsceneItemAttribute("Animation", "Stop Animation", CutsceneItemGenre.ActorItem)]
|
|
public class StopAnimationEvent : CinemaActorEvent
|
|
{
|
|
public string Animation = string.Empty;
|
|
|
|
public override void Trigger(GameObject actor)
|
|
{
|
|
if (actor != null)
|
|
{
|
|
Animation animation = actor.GetComponent<Animation>();
|
|
if (!animation)
|
|
{
|
|
return;
|
|
}
|
|
|
|
animation.Stop(Animation);
|
|
}
|
|
}
|
|
|
|
public override void Reverse(GameObject actor)
|
|
{
|
|
}
|
|
}
|
|
} |