| 6 | using namespace RavEngine; |
| 7 | |
| 8 | bool RavEngine::ScriptComponent::Destroy() |
| 9 | { |
| 10 | auto owner = getOwner(); |
| 11 | if (!owner.isNull()) { |
| 12 | Ref<Entity>(owner)->Destroy(); |
| 13 | return true; |
| 14 | } |
| 15 | return false; |
| 16 | } |
| 17 | |
| 18 | bool RavEngine::ScriptComponent::IsInWorld() |
| 19 | { |