Agent is null

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

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

    #8682
    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?

    #8681
    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

    Join us on Discord: https://discord.gg/97q2Rjh

    #8680
    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.