// 파일경로 탐색후 값 읽어오기 private void Awake() { if (instance != null) { Destroy(this.gameObject); return; } instance = this; DontDestroyOnLoad(this.gameObject); #if (UNITY_EDITOR || UNITY_STANDALONE_WIN) filePath += ("file:///"); filePath += (Application.streamingAssetsPath + "/" + fileName_2); #elif UNITY_ANDROID filePath += Application.streamingAssetsPath + "/" + fileName_2; #endif readCompleted = false; Debug.Log("KBY !!!: " + filePath); }
void Awake() { //quiz_XML_Reader = GetComponent<Quiz_XML_Reader>(); society_Qui2 = GameObject.Find("Quiz_XML_Reader").GetComponent <Geography_Quiz_Script1>(); }