Sending Event From MonoBehaviour

Forums 💬 NodeCanvas 🗨️ General Discussion Sending Event From MonoBehaviour

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14384
    atmuc
    Participant

      How can i send a global or targeted event from a MonoBehaviour script? i do not want to add FSM to my each object for just sending an event.

      #14386
      Gavalakis
      Keymaster

        Hey,

        No, of course not :). You can do prety much everything from code too.
        You can simply send a local event by having a reference to the FSMOwner, or a global event by calling the static method:

        #14385
        atmuc
        Participant

          it is great 🙂 i am always sure that there is an easy way to do in NC 🙂

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.