// Use this for initialization private void Start() { //assign Game manager if (gameManager == null) { gameManager = GameObject.Find("gameManager"); } //Create GeoGebraMR folder if not exist if (!Directory.Exists(Application.dataPath + "/GeoGebraMR")) { Directory.CreateDirectory(Application.dataPath + "/GeoGebraMR"); } //Test the correct file folder Debug.Log("File folder for saving pictures is " + Application.dataPath); List <GameObject> PhotoPreviewList = new List <GameObject>(); PhotoPreviewList.Add(PhotoPreview1); PhotoPreviewList.Add(PhotoPreview2); PhotoPreviewList.Add(PhotoPreview3); PhotoPreviewList.Add(PhotoPreview4); ReadyForNextPhoto = true; if (GetSourceStat == null) { GetSourceStat = GameObject.Find("GameManager"); } getControllerStates = GetSourceStat.GetComponent <GetControllerStates>(); }
void Start() { m_MainCamera = Camera.main; m_UISystem = CoherentUIGTSystem.CurrentUISystem; pointerCursor = GameObject.Find("DefaultCursor"); getControllerStates = GameObject.Find("GameManager").GetComponent <GetControllerStates>(); gameManager = GameObject.Find("GameManager"); mouseOperation = gameManager.GetComponent <MouseOperation>(); getControllerStates = gameManager.GetComponent <GetControllerStates>(); isReadyForNextClick = true; }
// Use this for initialization private void Start() { //assign Game manager if (gameManager == null) { gameManager = GameObject.Find("gameManager"); } //Create GeoGebraMR folder if not exist // changing "Application.dataPath" for "PicturesLibrary" if (!Directory.Exists(Application.dataPath + "/GeoGebraMR")) { Directory.CreateDirectory(Application.dataPath + "/GeoGebraMR"); } /* * if (!Directory.Exists(storageFolder + "/GeoGebraMR")) * { * Directory.CreateDirectory(storageFolder + "/GeoGebraMR"); * } */ //Test the correct file folder //Debug.Log("File folder for saving pictures is " + Application.dataPath); //Debug.Log("File folder for saving pictures is " + Application.dataPath); List <GameObject> PhotoPreviewList = new List <GameObject>(); PhotoPreviewList.Add(photoPreview1); PhotoPreviewList.Add(photoPreview2); PhotoPreviewList.Add(photoPreview3); PhotoPreviewList.Add(photoPreview4); readyForNextPhoto = true; if (getSourceStat == null) { getSourceStat = GameObject.Find("GameManager"); } getControllerStates = getSourceStat.GetComponent <GetControllerStates>(); }