void Transform::load(){ for(NodeChild * child : children){ NodeLoadable * nl = child->asNodeLoadable(); if(nl != nullptr){ nl->load(); } } NodeLoadable::load(); }
void Entity::load(){ for(NodeChild * child : children){ NodeLoadable * nl = dynamic_cast<NodeLoadable *>(child); if(nl != nullptr){ nl->load(); } } NodeLoadable::load(); }