mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 08:25:20 +01:00
22 lines
481 B
C#
22 lines
481 B
C#
using UnityEngine;
|
|
|
|
namespace CinemaDirector
|
|
{
|
|
[CutsceneItem("Animator", "Set IK Position", new CutsceneItemGenre[] { CutsceneItemGenre.ActorItem })]
|
|
public class SetIKPositionAnimatorEvent : CinemaActorEvent
|
|
{
|
|
public AvatarIKGoal Goal;
|
|
|
|
public Vector3 GoalPosition;
|
|
|
|
public override void Trigger(GameObject actor)
|
|
{
|
|
Animator component = actor.GetComponent<Animator>();
|
|
if (!(component == null))
|
|
{
|
|
component.SetIKPosition(Goal, GoalPosition);
|
|
}
|
|
}
|
|
}
|
|
}
|