示例#1
0
 public override void SetMenuData(object param)
 {
     base.SetMenuData(param);
     isRandomName = false;
     isRandomType = false;
     if (GuideNodeManager.IsGuide)
     {
         GuideObj.CustomSetActive(true);
         for (int i = 0; i < GeneralObj.Count; i++)
         {
             GeneralObj[i].CustomSetActive(false);
         }
         RandomNameFactory.GuideRandom(delegate(string name) {
             isRandomName     = true;
             isRandomType     = true;
             InputLabel.value = name;
         });
     }
     TitleLabel.text = (GuideNodeManager.IsGuide)? EB.Localizer.GetString("ID_INPUT_NAME") : EB.Localizer.GetString("ID_uifont_in_LTChangeNickNameView_Label_0");
 }
示例#2
0
 public static void GuideRandom(System.Action <string> callback = null)
 {
     m_Instance = new RandomNameFactory();
     m_Instance.LoadAllFromResources(global::UserData.Locale, false, callback);
 }