Пример #1
0
void Entity::hide(){
    if(objectmanagerId != 0){ 
        ObjectManager *objectManager = Global::getInstance()->objectManager;
        objectManager->removeObject(objectmanagerId);
        objectmanagerId = 0;
    }
}
Пример #2
0
void DeviceInterface::disconnectMediaPlayer()
{
    ObjectManager *manager = ObjectManager::self();
    manager->removeObject(m_mediaPlayer);
    m_connectedUuids.removeOne(MediaPlayerUuid);

    m_mediaPlayer = 0;
}
Пример #3
0
Entity::~Entity(){
    //remove ourselves from the object manager
    ObjectManager *objectManager = Global::getInstance()->objectManager;
    objectManager->removeObject(objectmanagerId);
}