Reply To: ConditionTask Methods

NodeCanvas Forums Support ConditionTask Methods Reply To: ConditionTask Methods

#13256
atmuc
Participant

onenable and ondisable can cause undesired behaviours. there should be a function that runs just before first checking the condition. and there should be an exit function that runs just after the success case. also, ondisable should call exit function if the condition is active. onenable and ondisable are related directly to the gameobject. you can activate gameobject before using condition. maybe you never use condition buy you can enable condition game object. similarly, you can disable game object lately or you can cache it. so there should be functions related condition.