// Use this for initialization void Start() { finalFilePath = Application.dataPath + "/" + FILE_NAME; if (instance == null) { instance = this; DontDestroyOnLoad(this); } else { Destroy(gameObject); } }
// Use this for initialization void Start() { textSaver = GameObject.Find("TextSaver"); fileScript = textSaver.GetComponent <FileIOScript>(); }