mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-17 17:04:45 +01:00
21 lines
398 B
C#
21 lines
398 B
C#
using UnityEngine;
|
|
|
|
namespace CinemaDirector
|
|
{
|
|
[CutsceneItem("Transform", "Detach Children", new CutsceneItemGenre[] { CutsceneItemGenre.ActorItem })]
|
|
public class DetachChildrenEvent : CinemaActorEvent
|
|
{
|
|
public override void Trigger(GameObject actor)
|
|
{
|
|
if (actor != null)
|
|
{
|
|
actor.transform.DetachChildren();
|
|
}
|
|
}
|
|
|
|
public override void Reverse(GameObject actor)
|
|
{
|
|
}
|
|
}
|
|
}
|