mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
23 lines
423 B
C#
23 lines
423 B
C#
using UnityEngine;
|
|
|
|
namespace CinemaDirector
|
|
{
|
|
[CutsceneItem("Transform", "Set Position", new CutsceneItemGenre[] { CutsceneItemGenre.ActorItem })]
|
|
public class SetPositionEvent : CinemaActorEvent
|
|
{
|
|
public Vector3 Position;
|
|
|
|
public override void Trigger(GameObject actor)
|
|
{
|
|
if (actor != null)
|
|
{
|
|
actor.transform.position = Position;
|
|
}
|
|
}
|
|
|
|
public override void Reverse(GameObject actor)
|
|
{
|
|
}
|
|
}
|
|
}
|