Files
BH3/Assets/Plugins/Assembly-CSharp-firstpass/CinemaDirector/SetIKRotationWeightAnimatorEvent.cs
2025-08-13 09:26:42 +08:00

22 lines
484 B
C#

using UnityEngine;
namespace CinemaDirector
{
[CutsceneItem("Animator", "Set IK Rotation Weight", new CutsceneItemGenre[] { CutsceneItemGenre.ActorItem })]
public class SetIKRotationWeightAnimatorEvent : CinemaActorEvent
{
public AvatarIKGoal Goal;
public float Value;
public override void Trigger(GameObject actor)
{
Animator component = actor.GetComponent<Animator>();
if (!(component == null))
{
component.SetIKRotationWeight(Goal, Value);
}
}
}
}