mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 08:25:20 +01:00
25 lines
574 B
C#
25 lines
574 B
C#
using UnityEngine;
|
|
|
|
namespace CinemaDirector
|
|
{
|
|
[CutsceneItem("Game Object", "Send Message", new CutsceneItemGenre[] { CutsceneItemGenre.ActorItem })]
|
|
public class SendMessageGameObject : CinemaActorEvent
|
|
{
|
|
public string MethodName = string.Empty;
|
|
|
|
public object Parameter;
|
|
|
|
public string messageID = string.Empty;
|
|
|
|
public SendMessageOptions SendMessageOptions = SendMessageOptions.DontRequireReceiver;
|
|
|
|
public override void Trigger(GameObject actor)
|
|
{
|
|
if (actor != null)
|
|
{
|
|
actor.SendMessage(MethodName, messageID, SendMessageOptions);
|
|
}
|
|
}
|
|
}
|
|
}
|