Agent is null

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14387
    atmuc
    Participant

      i restart my scene. agent is null in my Custom Condition.

      #14390
      atmuc
      Participant

        i think problem is related my drag subscription. on level load i cannot unsubscribe old condition. so singleton touchcontroller calls old condition that has no agent. is there any method like onunload/ondestroy of task?

        #14389
        Gavalakis
        Keymaster

          Hey,

          I have replied to your other post about a deactivation of conditions tasks. As far as action tasks, you can override the OnStop method. Is that what you mean?

          Thanks

          #14388
          atmuc
          Participant

            yes it is related other case. so onstop will solve this. thanks 🙂

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