IndieGame/client/Assets/ParadoxNotion/NodeCanvas/_DeprecatedFiles/Legacy_EventReceiverAttribute.cs

13 lines
577 B
C#
Raw Permalink Normal View History

2024-10-11 10:12:15 +08:00
namespace NodeCanvas.Framework
{
[System.AttributeUsage(System.AttributeTargets.Class)]
[System.Obsolete("[EventReceiver] is no longer used. Please use the '.router' property to subscribe/unsubscribe to events (in OnExecute/OnStop for actions and OnEnable/OnDisable for conditions). For custom events, use '.router.onCustomEvent'.")]
public class EventReceiverAttribute : System.Attribute
{
readonly public string[] eventMessages;
public EventReceiverAttribute(params string[] args) {
this.eventMessages = args;
}
}
}