void ShowErrorTexts(string error) { print(enterNametext); //enterNametext = GameObject.Find ("EnternameText").GetComponent<Text> (); //enterNametext.gameObject.SetActive (true); ////enterNametext.GetComponent<Text> ().text = error; //enterNametext.text = error; //Invoke ("DisableText", 5f); _tm.showToastOnUiThread(error); }
public void AudioSetting() { print("Audio settings" + muteAudio); muteAudio = !muteAudio; AudioManager.mute = muteAudio; AudioManager.Instance.MuteAudioSources(AudioManager.mute); if (muteAudio) { audioBtn.GetComponent <Image> ().sprite = muteAudioImg; _tm.showToastOnUiThread("Sound Off"); PlayerPrefs.SetInt("MuteAudio", 1); } else if (!muteAudio) { //AudioManager.Instance.UIClick(); audioBtn.GetComponent <Image> ().sprite = unmuteAudioImg; _tm.showToastOnUiThread("Sound On"); PlayerPrefs.SetInt("MuteAudio", 0); //AudioManager.Instance.MuteAudioSources (false); } }
public void CheckIfInternet() { _tm.showToastOnUiThread("No internet connection"); }
void ShowPlayerSelectionError(string err) { //selectPlayerErrorMsg.SetActive (true); _tm.showToastOnUiThread(err); //Invoke ("HidePlayerSelectionError", 3f); }