Example #1
0
 protected override void ReleaseSelf(bool calledDestroy)
 {
     if (SystemConfig.IsReleaseResourceOn)
     {
         PetSelectUI.Instance = null;
         base.ReleaseSelf(true);
     }
 }
Example #2
0
 private void Awake()
 {
     PetSelectUI.Instance = this;
     base.AwakeBase(BindingContext.BindingContextMode.MonoBinding, false);
     this.NoPets                   = base.FindTransform("NoPets");
     this.GridChoosePet            = base.FindTransform("GridChoosePet").GetComponent <GridLayoutGroup>();
     this.BtnConfirm               = base.FindTransform("BtnConfirm").GetComponent <ButtonCustom>();
     this.BtnConfirm.onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnClickBtnConfirm);
 }
Example #3
0
    private void OnClickBtnChange(int index)
    {
        List <int> formationLvs = PetManager.Instance.GetFormationLvs();

        if (EntityWorld.Instance.EntSelf.Lv < formationLvs.get_Item(index))
        {
            UIManagerControl.Instance.ShowToastText(GameDataUtils.GetChineseContent(510100, false));
            return;
        }
        PetSelectUI petSelectUI = UIManagerControl.Instance.OpenUI("PetSelectUI", null, false, UIType.NonPush) as PetSelectUI;

        petSelectUI.RefreshUIIsInstance(index + 1);
        this.RefreshRight(this.currentSelectFormationID);
    }
Example #4
0
    private void OnButtonClick()
    {
        PetSelectUI petSelectUI = UIManagerControl.Instance.OpenUI("PetSelectUI", null, false, UIType.NonPush) as PetSelectUI;

        petSelectUI.RefreshUIIsPetTask(PetTaskFormationUIView.Instance.m_petIds, PetTaskFormationUIView.Instance.m_task_quality);
    }