//Use for initialization. This is called only once in the lifetime of the task. //Return null if init was successfull. Return an error string otherwise protectedoverridestringOnInit(){ returnnull; }
//This is called once each time the task is enabled. //Call EndAction() to mark the action as finished, either in success or failure. //EndAction can be called from anywhere. protectedoverridevoidOnExecute(){ EndAction(true); }
//Called once per frame while the action is active. protectedoverridevoidOnUpdate(){ }
//Called when the task is disabled. protectedoverridevoidOnStop(){ }
//Called when the task is paused. protectedoverridevoidOnPause(){ } } }
//Use for initialization. This is called only once in the lifetime of the task. //Return null if init was successfull. Return an error string otherwise protectedoverridestringOnInit(){ returnnull; }
//Called whenever the condition gets enabled. protectedoverridevoidOnEnable(){ }
//Called whenever the condition gets disabled. protectedoverridevoidOnDisable(){ }
//Called once per frame while the condition is active. //Return whether the condition is success or failure. protectedoverrideboolOnCheck(){ returntrue; } } }