mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
26 lines
490 B
C#
26 lines
490 B
C#
using UnityEngine;
|
|
|
|
namespace CinemaDirector
|
|
{
|
|
[CutsceneItem("Animator", "Set Integer", new CutsceneItemGenre[]
|
|
{
|
|
CutsceneItemGenre.ActorItem,
|
|
CutsceneItemGenre.MecanimItem
|
|
})]
|
|
public class SetIntegerAnimatorEvent : CinemaActorEvent
|
|
{
|
|
public string IntName;
|
|
|
|
public int Value;
|
|
|
|
public override void Trigger(GameObject actor)
|
|
{
|
|
Animator component = actor.GetComponent<Animator>();
|
|
if (!(component == null))
|
|
{
|
|
component.SetInteger(IntName, Value);
|
|
}
|
|
}
|
|
}
|
|
}
|