public void OnApplyClick() { applyButton.SetActive(false); System.Action <string> data = null; StartCoroutine(LoadFromSheets.DownloadData(data)); string downloadData = PlayerPrefs.GetString("LastDataDownloaded", null); questionArrays = downloadData.Split('*'); if (questionArrays[0] != null) { LoadFileQuestion(questionArrays[0], 0); } numberQuestion = 0; //= Random.Range(0, (amountLines / 5) - 1) * 5; // випадкове запитання PutQuestionToList(); LoadQuestionAndAnswersToScreen(); }
public void LoadTable() { System.Action <string> callback = SplitStringDataToQuestions; StartCoroutine(LoadFromSheets.DownloadData(callback)); }