| 141 | } |
| 142 | |
| 143 | void Behavior::StopLogic(BehaviorUpdateResult result) |
| 144 | { |
| 145 | if (_result != BehaviorUpdateResult::Running || result == BehaviorUpdateResult::Running) |
| 146 | return; |
| 147 | PROFILE_CPU(); |
| 148 | _accumulatedTime = 0.0f; |
| 149 | _totalTime = 0; |
| 150 | _result = result; |
| 151 | _knowledge.FreeMemory(); |
| 152 | } |
| 153 | |
| 154 | void Behavior::ResetLogic() |
| 155 | { |