This commit is contained in:
CortexCore
2023-10-20 19:31:12 +08:00
parent 5cd094ed9a
commit a160813262
1878 changed files with 630581 additions and 4485 deletions

View File

@@ -94,6 +94,10 @@ namespace NodeCanvas.StateMachines
//Update current state
currentState.Execute(agent, blackboard);
//this can only happen if FSM stoped just now (from the above update)
if ( currentState == null ) { Stop(false); return; }
if ( onStateUpdate != null && currentState.status == Status.Running ) {
onStateUpdate(currentState);
}