public void ShowAchieve(enNewbieAchieve achieveType)
        {
            if (MonoSingleton <Reconnection> .instance.isProcessingRelayRecover || Singleton <WatchController> .GetInstance().IsWatching)
            {
                return;
            }
            CUIFormScript cUIFormScript = Singleton <CUIManager> .GetInstance().OpenForm("UGUI/Form/System/Achieve/Form_AchieveShow.prefab", false, true);

            Text component = cUIFormScript.gameObject.transform.Find("Bg/TxtTitle").gameObject.GetComponent <Text>();

            component.set_text(Singleton <CTextManager> .GetInstance().GetText(string.Format("{0}Title", achieveType.ToString())));
            Text component2 = cUIFormScript.gameObject.transform.Find("Bg/Txt").gameObject.GetComponent <Text>();

            component2.set_text(Singleton <CTextManager> .GetInstance().GetText(achieveType.ToString()));
        }
Пример #2
0
        public void ShowAchieve(enNewbieAchieve achieveType)
        {
            if (!MonoSingleton <Reconnection> .instance.isProcessingRelayRecover)
            {
                CUIFormScript script = Singleton <CUIManager> .GetInstance().OpenForm("UGUI/Form/System/Achieve/Form_AchieveShow.prefab", false, true);

                script.gameObject.transform.Find("Bg/TxtTitle").gameObject.GetComponent <Text>().text = Singleton <CTextManager> .GetInstance().GetText(string.Format("{0}Title", achieveType.ToString()));

                script.gameObject.transform.Find("Bg/Txt").gameObject.GetComponent <Text>().text = Singleton <CTextManager> .GetInstance().GetText(achieveType.ToString());
            }
        }