Пример #1
0
        public void LocationChanged(ProjectSceneArguments changedLocation)
        {
            ProjectData.ProjectStructure.UpdateProjectScene(changedLocation.Scene);
            ProjectData.ProjectStructure.UpdateOrAddLocationPrefab(changedLocation.Location);

            if (ProjectData.SceneId == changedLocation.Scene.Id && ProjectData.LocationId != changedLocation.Scene.LocationId)
            {
                LoaderAdapter.LoadProject(ProjectData.ProjectId, changedLocation.Scene.Id, ProjectData.ProjectConfigurationId);
            }
        }
Пример #2
0
 public void LocationDeleted(ProjectSceneArguments deletedLocation)
 {
     if (ProjectData.SceneId == deletedLocation.Scene.Id)
     {
         LogManager.GetCurrentClassLogger().Error("Current location was deleted");
         string message = LanguageManager.Instance.GetTextValue("CURRENT_LOCATION_DELETED");
         VRErrorManager.Instance.ShowFatal(message);
     }
     else
     {
         ProjectData.ProjectStructure.RemoveProjectScene(deletedLocation.Scene);
     }
 }
Пример #3
0
 public void LocationAdded(ProjectSceneArguments newLocation)
 {
     ProjectData.ProjectStructure.Scenes.Add(newLocation.Scene);
     ProjectData.ProjectStructure.UpdateOrAddLocationPrefab(newLocation.Location);
 }