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 }
private void Awake() { if (instance != null) { Destroy(this.gameObject); return; } instance = this; DontDestroyOnLoad(this.gameObject); #if (UNITY_EDITOR || UNITY_STANDALONE_WIN) filePath += (Application.streamingAssetsPath + "/" + fileName); #elif UNITY_ANDROID filePath += Application.persistentDataPath + "/" + fileName; #endif Debug.Log(filePath); readCompleted = false; }