mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 08:25:20 +01:00
27 lines
529 B
C#
27 lines
529 B
C#
using UnityEngine;
|
|
|
|
namespace CinemaDirector
|
|
{
|
|
[CutsceneItem("Animation", "Stop Animation", new CutsceneItemGenre[] { CutsceneItemGenre.ActorItem })]
|
|
public class StopAnimationEvent : CinemaActorEvent
|
|
{
|
|
public string Animation = string.Empty;
|
|
|
|
public override void Trigger(GameObject actor)
|
|
{
|
|
if (actor != null)
|
|
{
|
|
Animation component = actor.GetComponent<Animation>();
|
|
if ((bool)component)
|
|
{
|
|
component.Stop(Animation);
|
|
}
|
|
}
|
|
}
|
|
|
|
public override void Reverse(GameObject actor)
|
|
{
|
|
}
|
|
}
|
|
}
|