示例#1
0
    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);
    }
示例#2
0
    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);
        }
    }
示例#3
0
 public void CheckIfInternet()
 {
     _tm.showToastOnUiThread("No internet connection");
 }
示例#4
0
 void ShowPlayerSelectionError(string err)
 {
     //selectPlayerErrorMsg.SetActive (true);
     _tm.showToastOnUiThread(err);
     //Invoke ("HidePlayerSelectionError", 3f);
 }