public void ShortLoad(string fileURL) { GameObject.Destroy(GameObject.Find(CommonNames.ROOT)); CommonObjs.Init(); quickParser.Load(fileURL); UpdateStatesSize(0.3f); //Debug.Log(totalBounds.ToString()); SendAndReceive.TreeToJSON(); }
IEnumerator ShortLoad(string fileURL) { GameObject.Destroy(CommonObjs.gmlRoot); //delete all IndoorGML Objects CommonObjs.Init(); //Recreate structure yield return(null); //let 1 Frame pass to show "Loading" Text parser.Load(fileURL); //load new file if (!parser.inspection) //Set Camera Position and show panels { cameraController.DoMoveViewPoint(1); cameraMovementPanel.SetActive(true); } else { cameraController.DoMoveViewPoint(5); } }