protected override void constructed() { SceneNodeElement sceneNode = Owner.getElement(nodeName) as SceneNodeElement; if (sceneNode == null) { blacklist("Cannot find Node '{0}'", nodeName); } entity = sceneNode.getNodeObject(entityName) as Entity; if (entity == null) { if (entityName == null) { blacklist("entityName is Null"); } else { blacklist("Cannot find entity named '{0}' in node '{1}'.", entityName, nodeName); } } if (String.IsNullOrEmpty(name)) { blacklist("Name is empty"); } VolumeController.addVolume(this); base.constructed(); //VERY hacky and bad, figure out another way to do this ThreadManager.invoke(() => { initialVolume = CurrentVolume; }); }
protected override void destroy() { VolumeController.removeVolume(this); base.destroy(); }