Beispiel #1
0
 protected override void OnOpen()
 {
     base.OnOpen();
     MultiLanguage();
     _petProcessTrain = SubWindowBase.CreateSubWindow <PetProcess_Train>(this, missionInfo.gameObject);
     _costComfirmBox  = SubWindowBase <Window_Train> .CreateSubWindow <CostComfirmBox>(this, confirmBoxRoot.gameObject);
 }
Beispiel #2
0
 public override bool Initialize(params object[] p)
 {
     if (base.Initialize(p))
     {
         _petProcessTrain = p[0] as PetProcess_Train;
         if (_petProcessTrain == null)
         {
             return(false);
         }
         _task = _petProcessTrain.currentTaskInfo;
         var rlist = modulePet.PetList;
         rlist.Sort(SortHandle);
         _petSelectModule.Initalize(rlist, _petProcessTrain.ReadlyPets);
         go.onClick.AddListener(Excute);
         closeButton.onClick.AddListener(OnCloseClick);
         Refresh();
         return(true);
     }
     return(false);
 }