public void SetCurrentObject(string objectName) { if (CurrentObject != null) { CurrentObject = null; } if (objectName != "" && Resources.ContainsKey(objectName)) { RenderResourceCDC renderResource = (RenderResourceCDC)Resources[objectName]; CurrentObject = new SceneCDC(renderResource.File, false); } }
public void SetCurrentScene(string sceneName) { if (CurrentScene != null) { CurrentScene.Dispose(); CurrentScene = null; } if (sceneName != "" && Resources.ContainsKey(sceneName)) { RenderResourceCDC renderResource = (RenderResourceCDC)Resources[sceneName]; CurrentScene = new SceneCDC(renderResource.File, true); } }