public void LoadExampleData1() { Debug.Log(LoadFromTextFile.getInstance()); Debug.Log(MainManager.getInstance().textFilePath1); if (Application.isEditor) { LoadFromTextFile.getInstance().LoadDataFromLocalTextFile(MainManager.getInstance().textFilePath1); } else { LoadFromTextFile.getInstance().LoadJsonDataFromWeb(MainManager.getInstance().webTextFilePath); } }
private void DataEntry() { if (useUiForDataInput) { //do something UIManager.getInstance().MenuBegin(); } else if (loadFromLocalFile) { UIManager.getInstance().Toggle_DataInfo(true); LoadFromTextFile.getInstance().LoadDataFromLocalTextFile(textFilePath1); //LoadFromTextFile.getInstance().LoadDataFromWebTextFile(webTextFilePath); } else if (loadFromWebFile) { LoadFromTextFile.getInstance().LoadJsonDataFromWeb(webTextFilePath); } }
public void LoadExampleData3() { Debug.Log(LoadFromTextFile.getInstance()); Debug.Log(MainManager.getInstance().textFilePath3); LoadFromTextFile.getInstance().LoadDataFromLocalTextFile(MainManager.getInstance().textFilePath3); }
private void Awake() { instance = this; filePath = Application.dataPath + "TestData.txt"; }