Ejemplo n.º 1
0
 public void Init(SpecialFightMode theMode, Action <SpecialFightMode> theBtnCallBack, string theTaskOpenText, string theCountDownText, string[] theWeekText)
 {
     this.mode          = theMode;
     this.btnCallBack   = theBtnCallBack;
     this.taskOpenText  = theTaskOpenText;
     this.countDownText = theCountDownText;
     this.weekText      = theWeekText;
     this.InfoText      = base.get_transform().FindChild(base.get_gameObject().get_name() + "Text").GetComponent <Text>();
     base.GetComponent <ButtonCustom>().onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnBtnClick);
     this.systemId = SpecialFightManager.GetSystemIDByMode(this.mode);
 }
Ejemplo n.º 2
0
    protected static void OpenSpecialInstanceAppointedUI(SpecialFightMode mode)
    {
        if (!SystemOpenManager.IsSystemClickOpen(17, 0, true))
        {
            return;
        }
        if (!SystemOpenManager.IsSystemClickOpen(SpecialFightManager.GetSystemIDByMode(mode), 0, true))
        {
            return;
        }
        InstanceManagerUI.InstanceID = 0;
        SpecialInstanceUI specialInstanceUI = UIManagerControl.Instance.OpenUI("SpecialInstanceUI", null, false, UIType.FullScreen) as SpecialInstanceUI;

        specialInstanceUI.FakeClick(mode);
    }
Ejemplo n.º 3
0
 protected void OnEnterDetail(SpecialFightMode mode, string anim)
 {
     if (!SystemOpenManager.IsSystemClickOpen(SpecialFightManager.GetSystemIDByMode(mode), 0, true))
     {
         return;
     }
     if (!this.DetailUI)
     {
         return;
     }
     SpecialFightManager.Instance.SelectDetailMode = mode;
     if (SpecialFightManager.GetModeCroup(mode) == SpecialFightModeGroup.Defend)
     {
         DefendFightManager.Instance.SelectDetailMode = (DefendFightMode.DFMD)mode;
     }
     this.DetailUI.SetInit(mode);
     SpecialFightManager.Instance.isInDetailPanel = false;
     this.animator.Play(anim, 0, 0f);
     this.EnabledModeList(false);
 }