Esempio n. 1
0
 private void AdjustTogShow(UIToggle tog)
 {
     if (tog.value)
     {
         tog.FindChild("background").SetActive(false);
     }
     else
     {
         tog.FindChild("background").SetActive(true);
     }
 }
Esempio n. 2
0
        private void InitLabel()
        {
            labSet.text       = LanguageManager.GetWord("SystemSettingView.Set");
            labCrit.text      = LanguageManager.GetWord("SystemSettingView.CritShake");
            labHide.text      = LanguageManager.GetWord("SystemSettingView.HidePlayer");
            labMute.text      = LanguageManager.GetWord("SystemSettingView.Mute");
            labSceneVol.text  = LanguageManager.GetWord("SystemSettingView.SceneVolumn");
            labEffectVol.text = LanguageManager.GetWord("SystemSettingView.EffectVolumn");

            labMusic.text  = LanguageManager.GetWord("SystemSettingView.Music");
            labAudio.text  = LanguageManager.GetWord("SystemSettingView.Audio");
            labPlayer.text = LanguageManager.GetWord("SystemSettingView.Player");

            togMusic.FindChild("background/text").GetComponent <UILabel>().text = LanguageManager.GetWord("SystemSettingView.Close");
            togMusic.FindChild("checkmark/text").GetComponent <UILabel>().text  = LanguageManager.GetWord("SystemSettingView.Open");

            togAudio.FindChild("background/text").GetComponent <UILabel>().text = LanguageManager.GetWord("SystemSettingView.Close");
            togAudio.FindChild("checkmark/text").GetComponent <UILabel>().text  = LanguageManager.GetWord("SystemSettingView.Open");

            togPlayer.FindChild("background/text").GetComponent <UILabel>().text = LanguageManager.GetWord("SystemSettingView.Hide");
            togPlayer.FindChild("checkmark/text").GetComponent <UILabel>().text  = LanguageManager.GetWord("SystemSettingView.Show");
        }