コード例 #1
0
    private void OnScPush(short state, SecretAreaLoginPush down = null)
    {
        if (state != 0)
        {
            StateManager.Instance.StateShow(state, 0);
            return;
        }
        if (down != null)
        {
            this.ScInfo = down;
            TiaoZhanBoCi tiaoZhanBoCi = DataReader <TiaoZhanBoCi> .DataList.Find((TiaoZhanBoCi a) => a.id == this.ScInfo.currClearBatch + 1);

            if (tiaoZhanBoCi == null)
            {
                this.IsPassAll = true;
                tiaoZhanBoCi   = DataReader <TiaoZhanBoCi> .DataList.Find((TiaoZhanBoCi a) => a.id == this.ScInfo.currClearBatch);
            }
            this.StageCurr = tiaoZhanBoCi.stage;
            int value = DataReader <ShengCunMiJingPeiZhi> .Get("lockStageNum").value;

            if (this.StageCurr >= this.StageMaxHis)
            {
                this.StageMax = this.StageCurr + value;
                if (this.StageMax > this.StageTop)
                {
                    this.StageMax = this.StageTop;
                }
            }
            EventDispatcher.Broadcast(EventNames.SCUpdateUI);
        }
    }
コード例 #2
0
 private static int StageSorCompare(TiaoZhanBoCi AF1, TiaoZhanBoCi AF2)
 {
     if (AF1.stage >= AF2.stage)
     {
         return(-1);
     }
     return(1);
 }
コード例 #3
0
    private void SCItemPrice()
    {
        for (int i = 0; i < this.Items.get_childCount(); i++)
        {
            Object.Destroy(this.Items.GetChild(i).get_gameObject());
        }
        TiaoZhanBoCi currentInfo = SurvivalManager.Instance.GetCurrentInfo();

        for (int j = 0; j < currentInfo.currencyType.get_Count(); j++)
        {
            ItemShow.ShowItem(this.Items, currentInfo.currencyType.get_Item(j), (long)currentInfo.currencyNum.get_Item(j), false, null, 2001);
        }
    }
コード例 #4
0
    private void OnClickChest(GameObject go)
    {
        List <int>   list        = new List <int>();
        List <long>  list2       = new List <long>();
        TiaoZhanBoCi currentInfo = SurvivalManager.Instance.GetCurrentInfo();

        if (currentInfo == null)
        {
            return;
        }
        for (int i = 0; i < currentInfo.currencyType.get_Count(); i++)
        {
            list.Add(currentInfo.currencyType.get_Item(i));
            list2.Add((long)currentInfo.currencyNum.get_Item(i));
        }
        RewardUI rewardUI = LinkNavigationManager.OpenRewardUI(UINodesManager.TopUIRoot);

        rewardUI.SetRewardItem("副本奖励", list, list2, true, false, null, null);
    }