MessageListener
namespace Griff.Runtime;
public sealed class MessageListenerSomething listening for a message sent with Send, made with a behavior’s On or On. Cancel it to stop listening.
Properties
Section titled “Properties”IsActive
Section titled “IsActive”public bool IsActive { get; }False once cancelled, or once its owner has left the scene.
Message
Section titled “Message”public string Message { get; }The message listened for, e.g. “PlayerDied”.
OwnerEntity
Section titled “OwnerEntity”public Entity? OwnerEntity { get; }The entity whose removal stops this listener, if any.
Methods
Section titled “Methods”Cancel
Section titled “Cancel”public void Cancel()