Ejemplo n.º 1
0
 public void UpdateSCWinUI(SecretAreaChallengeResultNty result)
 {
     base.FindTransform("BtnStatisticsNode").get_gameObject().SetActive(true);
     this.lastBatchText.set_text(string.Format(GameDataUtils.GetChineseContent(512053, false), result.startStage));
     this.currBatchText.set_text(string.Format(GameDataUtils.GetChineseContent(512054, false), result.endStage));
     for (int i = 0; i < this.ItemConten.get_childCount(); i++)
     {
         Object.Destroy(this.ItemConten.GetChild(i).get_gameObject());
     }
     for (int j = 0; j < result.copyRewards.get_Count(); j++)
     {
         ItemBriefInfo itemBriefInfo = result.copyRewards.get_Item(j);
         if (itemBriefInfo.cfgId == 1)
         {
             this.expText.set_text(itemBriefInfo.count.ToString());
         }
         else if (itemBriefInfo.cfgId == 2)
         {
             this.goldText.set_text(itemBriefInfo.count.ToString());
         }
         else
         {
             ItemShow.ShowItem(this.ItemConten, itemBriefInfo.cfgId, itemBriefInfo.count, false, null, 2001);
         }
     }
 }
Ejemplo n.º 2
0
 private void OnScResultNty(short state, SecretAreaChallengeResultNty down = null)
 {
     if (state != 0)
     {
         StateManager.Instance.StateShow(state, 0);
     }
     if (down != null)
     {
         this.OnGameOver(down);
     }
 }
Ejemplo n.º 3
0
    public void UpdateScResultUI(SecretAreaChallengeResultNty result)
    {
        if (result == null)
        {
            return;
        }
        this._PassTimeTextContent   = string.Empty;
        this.CurrentStageVisibility = true;
        int num = (result.startStage - 1 <= 0) ? 1 : (result.startStage - 1);

        this.currentStageTrans.FindChild("StartStageText").GetComponent <Text>().set_text(string.Format(GameDataUtils.GetChineseContent(512053, false), num));
        this.currentStageTrans.FindChild("EndStageText").GetComponent <Text>().set_text(string.Format(GameDataUtils.GetChineseContent(512054, false), result.endStage));
        this.UpdateDungeonRewards(result.copyRewards);
    }
Ejemplo n.º 4
0
 private void OnGameOver(SecretAreaChallengeResultNty downTmp)
 {
     this.resultProcessed = true;
     SurvivalInstance.Instance.GetInstanceResult(downTmp);
     InstanceManager.StopAllClientAI(true);
 }