public void Search() { string keyword = keywordField.text; foundWords.State = false; if (string.IsNullOrEmpty(keyword)) { Debug.Log("keyword cannot be empty"); message.SetMessage(4); loader.StopLoad(); return; } StartCoroutine(SearchForTerms(keyword)); }
void InternetAvailable(bool isAvailable) { if (isAvailable) { networkConnection.State = true; } else { networkConnection.State = false; message.SetMessage(1); } }