| 1339 | } |
| 1340 | |
| 1341 | void Actor::OnDisable() |
| 1342 | { |
| 1343 | CHECK_DEBUG(_isEnabled); |
| 1344 | _isEnabled = false; |
| 1345 | |
| 1346 | for (int32 i = Scripts.Count() - 1; i >= 0; i--) |
| 1347 | { |
| 1348 | auto script = Scripts[i]; |
| 1349 | if (script->GetEnabled() && script->_wasEnableCalled) |
| 1350 | script->Disable(); |
| 1351 | } |
| 1352 | } |
| 1353 | |
| 1354 | void Actor::OnParentChanged() |
| 1355 | { |
nothing calls this directly
no test coverage detected