1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user