<Task>How to disable a Task when the Gameobject is OnDisable/OnDestroy?

FireboltTZ

New member
I know how to subscribe an event in a conditional task, when gameobject is instantiated and the OnAwake function is executed. (Override the awake function)
Accordingly, I want to unsub the event in the Action Task, when the Gameobject is disabled/Destroyed. Is there a way?


1704696482990.jpeg
 
Top