예제 #1
0
    //倒计时完成任务
    void CountDown()
    {
        //Debug.Log("time"+time);
        if (countDown != null)
        {
            //Debug.Log("time" + time);
            countDown.StartIntervalTimer(time);
            countDown.onTimeOut = (x) =>
            {
                if (overDialog != null && npcNextStep != null)
                {
                    //Debug.Log("进入手动调用点击一次特效");
                    countDown.StopTimer();
                    Invoke("ResetCountDown", 0.1f);
                    npcNextStep.SendMessage("OnClick", npcNextStep, SendMessageOptions.DontRequireReceiver);//这一句放到最后面,不然会报错mising...
                }

                else
                {
                    Debug.LogError("预制上名为overDialog的组件为空");
                }
            };
        }
        else
        {
            Debug.LogError("名为countDown的Timer组件丢失");
        }
    }
예제 #2
0
 void remainTimeUpdate()
 {
     if (curInfo.RemainTime == -1)
     {
         if (rewardBtn != null)
         {
             rewardBtn.SetActive(true);
         }
         if (timerObj != null)
         {
             timerObj.SetActive(false);
         }
         if (getRewardEx != null)
         {
             getRewardEx.IsGray = UISpriteEx.ColorGray.normal;
         }
         return;
     }
     remainTime = curInfo.RemainTime - ((int)Time.time - curInfo.ReceiveTime);
     if (remainTime > 0 && !GameCenter.onlineRewardMng.IsGetedAll)//等待
     {
         if (timer != null)
         {
             timer.StartIntervalTimer(remainTime);
         }
         if (timerObj != null)
         {
             timerObj.SetActive(true);
         }
         if (rewardBtn != null)
         {
             rewardBtn.SetActive(false);
         }
         if (getRewardEx != null)
         {
             getRewardEx.IsGray = UISpriteEx.ColorGray.Gray;
         }
     }
     else//可以抽奖
     {
         if (timer != null)
         {
             timer.StartIntervalTimer(0);
         }
         if (timerObj != null)
         {
             timerObj.SetActive(false);
         }
         if (rewardBtn != null)
         {
             rewardBtn.SetActive(true);
         }
         if (getRewardEx != null)
         {
             getRewardEx.IsGray = UISpriteEx.ColorGray.normal;
         }
         RefreshState();
     }
 }
예제 #3
0
 protected override void OnOpen()
 {
     base.OnOpen();
     //MiracleEnterWnd();//
     if (totleTimer != null && GameCenter.miracleMng.miracleStatus == AccessState.ACCEPTED && GameCenter.miracleMng.miracleStatus != AccessState.NONE)
     {
         totleTimer.StartIntervalTimer(GameCenter.miracleMng.restTime - (int)Time.realtimeSinceStartup);
     }
 }
예제 #4
0
 protected override void OnOpen()
 {
     base.OnOpen();
     if (GameCenter.guildFightMng.isGuildFight)
     {
         RefreshActivityGuildFight();
     }
     else if (GameCenter.activityMng.isGuildStormCity)
     {
         RefreshActivityGuildStormCity();
     }
     else
     {
         RefreshActivityBalance();
     }
     if (cdTimer != null)
     {
         cdTimer.StartIntervalTimer(10);
         cdTimer.onTimeOut = delegate
         {
             GameCenter.uIMng.SwitchToUI(GUIType.NONE);
             GameCenter.duplicateMng.C2S_OutCopy();
         };
     }
 }
예제 #5
0
 void ShowMagicTower(int _star, int time)
 {
     if (tipGo != null)
     {
         tipGo.SetActive(true);
     }
     if (tipGoCloseT != null)
     {
         tipGoCloseT.text = time.ToString();
     }
     //if(tipGoNum != null)tipGoNum.text = num.ToString();
     if (tipGoTimer != null)
     {
         tipGoTimer.StopTimer();
         tipGoTimer.StartIntervalTimer(3);
         tipGoTimer.onTimeOut = delegate {
             tipGo.SetActive(false);
         };
     }
     for (int i = 0, max = star.Length; i < max; i++)
     {
         if (_star > i)
         {
             star[i].gameObject.SetActive(true);
         }
         else
         {
             star[i].gameObject.SetActive(false);
         }
     }
 }
예제 #6
0
파일: ChatWnd.cs 프로젝트: atom-chen/tianyu
 void RefreshPointCD()
 {
     if (GameCenter.chatMng.PointCD != 0)
     {
         int remainTime = (int)(Time.time - GameCenter.chatMng.PointCD);
         if (remainTime >= 20)
         {
             GameCenter.chatMng.PointCD = 0f;
             if (PointCDObj != null)
             {
                 PointCDObj.SetActive(false);
             }
             return;
         }
         if (PointCDObj != null)
         {
             PointCDObj.SetActive(true);
         }
         if (PointCDtimer != null)
         {
             PointCDtimer.StartIntervalTimer(20 - remainTime);
             if (isfirstTimeCD)
             {
                 InvokeRepeating("RefreshPointCDSprite", 0.1f, 0.5f);
                 isfirstTimeCD = false;
             }
         }
     }
 }
예제 #7
0
 protected override void OnOpen()
 {
     base.OnOpen();
     time.StartIntervalTimer(5);
     time.onTimeOut = delegate {
         GameCenter.duplicateMng.C2S_OutCopy();
     };
 }
예제 #8
0
 void SetHideOrTrue()
 {
     GameCenter.duplicateMng.isClickAddFri = true;
     timerLabel.gameObject.SetActive(true);
     normalLab.gameObject.SetActive(false);
     spEx.IsGray = UISpriteEx.ColorGray.Gray;
     timerLabel.StartIntervalTimer(15);
     timerLabel.onTimeOut = SetNormal;
 }
예제 #9
0
    void ShowTime()
    {
        int time = GameCenter.dungeonMng.DungeonTime;

        if (timer != null)
        {
            timer.StartIntervalTimer(time);
        }
    }
예제 #10
0
 void RefreshTime()
 {
     if (timer != null)
     {
         if (GameCenter.guildFightMng.remainTime != null)
         {
             //Debug.Log("倒计时  " + GameCenter.guildFightMng.remainTime.remainTime);
             timer.StartIntervalTimer(GameCenter.guildFightMng.remainTime.remainTime);
         }
     }
 }
예제 #11
0
 protected void SetTimer(float _time)
 {
     if (timer != null)
     {
         timer.gameObject.SetActive(mCd);
         if (mCd)
         {
             timer.StartIntervalTimer((int)time);
         }
     }
 }
예제 #12
0
    void Refresh()
    {
        if (fightGo != null)
        {
            fightGo.SetActive(false);
        }
        if (openGo != null)
        {
            openGo.SetActive(false);
        }
        if (closeGo != null)
        {
            closeGo.SetActive(false);
        }
        switch (GameCenter.dungeonMng.guildSiegeState)
        {
        case GuildSiegeState.Fighting:
            if (fightGo != null)
            {
                fightGo.SetActive(true);
            }
            break;

        case GuildSiegeState.Open:
            if (openGo != null)
            {
                openGo.SetActive(true);
            }
            if (waitTimer != null)
            {
                waitTimer.StartIntervalTimer(GameCenter.dungeonMng.GuildSiegeWaitTime - (int)Time.realtimeSinceStartup);
                waitTimer.onTimeOut = (x) =>
                {
                    if (openGo != null)
                    {
                        openGo.SetActive(false);
                    }
                    if (closeGo != null)
                    {
                        closeGo.SetActive(true);
                    }
                };
            }
            break;

        case GuildSiegeState.Close:
            if (closeGo != null)
            {
                closeGo.SetActive(true);
            }
            break;
        }
    }
예제 #13
0
	void RefreshHolyInfo()
	{
		pt_reply_holy_crystal_info_d611 info = GameCenter.activityMng.CurHolyCrystalInfo;
		if(info == null)return;
		if(holyTimer != null)
		{
			int time = GameCenter.activityMng.GetActivityTime(ActivityType.HOLYSPAR);
			holyTimer.StartIntervalTimer(time);
			//活动结束
			if(time != 0)
			{
				holyTimer.onTimeOut = (x)=>
				{
					CloseHolyWnd();
				};
			}
		}
		builder.Remove(0,builder.Length);
		builder.Append("累计获得经验:").Append(info.total_exp).Append("\n");
		builder.Append("累计采集宝箱数:").Append(info.open_box_times).Append("/5").Append("\n");

		List<OtherPlayer> opcList = GameCenter.curGameStage.GetOtherPlayers();
		SceneItem holyStone = null;
		List<SceneItem> itemList = GameCenter.curGameStage.GetSceneItems();
		for (int i = 0,max=itemList.Count; i < max; i++) {
			SceneItem item = itemList[i];
			if(item.MySceneFunctionType == SceneFunctionType.HOLYSTONE)
			{
				holyStone = item;
				break;
			}
		}
		if(holyStone == null)
		{
			//GameCenter.messageMng.AddClientMsg("没有发现神圣水晶石!");
			CloseHolyWnd();//活动结束
			return;
		}
		int opcCount = 0;
		if((GameCenter.curMainPlayer.transform.position - holyStone.transform.position).sqrMagnitude < 25)
			opcCount = 1;//自己在紫色圈里面
		for (int i = 0,max=opcList.Count; i < max; i++) {
			if((opcList[i].transform.position - holyStone.transform.position).sqrMagnitude < 25)
				opcCount++;
		}

		int addNum = 280 - Mathf.Min(opcCount,11)*10 - (int)Mathf.Floor((Mathf.Min(Mathf.Max(opcCount,11),20)-11)/3)*10 - (int)Mathf.Floor((Mathf.Min(Mathf.Max(opcCount,20),40)-20)/5)*10;
		builder.Append("紫色区域当前人数:").Append(opcCount).Append("\n");
		builder.Append("紫色区域当前经验加成:").Append(addNum).Append("%").Append("\n");
		builder.Append("蓝色区域当前经验加成:100%").Append("\n");
		if(labHolyInfo != null)labHolyInfo.text = builder.ToString();
	}
예제 #14
0
    void ShowPetTime()
    {
        int time = GameCenter.dungeonMng.DungeonPetTime;

        if (timerDead != null)
        {
            timerDead.StartIntervalTimer(time);
        }
        if (petName != null)
        {
            petName.text = GameCenter.dungeonMng.DungeonPetName;
        }
    }
예제 #15
0
 void Awake()
 {
     openTime        = Time.time;
     mutualExclusion = false;
     Layer           = GUIZLayer.TIP + 200;
     showTime.StartTimer();
     if (GameCenter.instance.IsConnected)
     {
         NetMsgMng.ConectClose();
     }
     UIEventListener.Get(goBackBtn).onClick += OnBtnPassWord;
     showTime.StartIntervalTimer((int)limitTime);
 }
예제 #16
0
 protected override void OnOpen()
 {
     base.OnOpen();
     curFlop = 0;
     time    = Time.time;
     if (btnOk != null)
     {
         UIEventListener.Get(btnOk).onClick = delegate {
             ToFlopWmd();
         }
     }
     ;
     leveTimer.StartIntervalTimer(8);
     CancelInvoke("ToFlopWmd");
     Invoke("ToFlopWmd", 8);
     GameCenter.duplicateMng.OnOpenCopySettlementFlop += OnOpenCopySettlementFlop;
     for (int i = 0, len = flops.Length; i < len; i++)
     {
         UIEventListener.Get(flops[i].gameObject).onClick  += OnClickFlop;
         UIEventListener.Get(flops[i].gameObject).parameter = i + 1;
     }
     isSelectFolp = false;
 }
예제 #17
0
    void RefreshSuperWnd()
    {
        //Debug.Log("RefreshSuperWnd()");
        if (timer != null)
        {
            timer.StartIntervalTimer(GameCenter.treasureTroveMng.Time);
        }
        List <st.net.NetBase.treasure_times_reward> list = GameCenter.treasureTroveMng.GetRewardInfo();

        if (list != null && grid != null && superItem != null && desList != null)
        {
            desList.Clear();

            for (int i = 0, len = list.Count; i < len; i++)
            {
                if (!superItems.ContainsKey((int)list[i].id))
                {
                    TreasureSuperItemUI item = TreasureSuperItemUI.CreateNew(grid.transform, superItem.gameObject);
                    if (item != null)
                    {
                        superItems[(int)list[i].id] = item;
                    }
                }
                itemList.Clear();

                for (int j = 0, length = list[i].reward_info.Count; j < length; j++)
                {
                    itemList.Add(new ItemValue((int)list[i].reward_info[j].item_id, (int)list[i].reward_info[j].item_num));
                }
                desList.Add(list[i].desc);

                superItems[(int)list[i].id].refreshAll((int)list[i].need_times, GameCenter.treasureTroveMng.Times, list[i].status, list[i].id, itemList, desList[i]);
            }
        }
        //for (int k = 0,num = list.Count; k < num; k++)
        //{
        //    //Debug.Log("list.Count:"+ list.Count);
        //    //Debug.Log("desList:"+ desList.Count);


        //}
        if (superItem != null)
        {
            superItem.gameObject.SetActive(false);
        }
        if (grid != null)
        {
            grid.Reposition();
        }
    }
예제 #18
0
 /// <summary>
 /// 倒计时自动接取环式任务
 /// </summary>
 void CountDown()
 {
     if (time != null)
     {
         time.GetComponent <UILabel>().text = "3";
     }
     if (time != null)
     {
         time.StartIntervalTimer(3);
         if (autoFilish != null && !autoFilish.activeSelf)
         {
             autoFilish.SetActive(true);
         }
         time.onTimeOut = (x) =>
         {
             autoFilish.SetActive(false);
             TaskInfo info = GameCenter.taskMng.GetCurRingTask;
             if (info.TaskState == TaskStateType.UnTake)
             {
                 GameCenter.taskMng.C2S_AskAcceptRingTask();
             }
             else if (info.TaskState == TaskStateType.Finished)
             {
                 FinishTask(btnFinishTask.gameObject);
                 //Invoke("FinishTask", 0.5f);
             }
             else if (info.TaskState == TaskStateType.Process)
             {
                 GameCenter.taskMng.GoTraceTask(info);
                 if (GameCenter.uIMng.CurOpenType == GUIType.RINGTASK)
                 {
                     GameCenter.uIMng.SwitchToUI(GUIType.NONE);
                 }
             }
         };
     }
 }
예제 #19
0
    void ShowRank()
    {
        rankItems.Clear();
        otherRankItemUI.gameObject.SetActive(true);
        List <st.net.NetBase.rank_info_base> rankList = GameCenter.treasureTroveMng.GetrankList();

        //Debug.Log("GameCenter.treasureTroveMng.OpenTimes:" + GameCenter.treasureTroveMng.OpenTimes);
        if (myRankItemUI != null)
        {
            myRankItemUI.SetData(GameCenter.treasureTroveMng.Rank, GameCenter.treasureTroveMng.OpenTimes);                     //SetData传入后台数据做参数
        }
        if (rewardItems != null && rankList != null && grid != null)
        {
            for (int i = 0, count = rankList.Count; i < count; i++)
            {
                //Debug.Log("名字:" + rankList[i].name);
                if (rankList[i].name.Equals(GameCenter.mainPlayerMng.MainPlayerInfo.Name))
                {
                    if (myRankItemUI != null)
                    {
                        rankItems.Add(TreasureRankItemUI.Create(grid.transform, otherRankItemUI.gameObject, Color.green));
                    }
                }
                else
                {
                    if (otherRankItemUI != null)
                    {
                        rankItems.Add(TreasureRankItemUI.CreateNew(grid.transform, otherRankItemUI.gameObject));
                    }
                }
                //rankItems[i].SetData(rankList[i]);
            }
            for (int k = 0, count = rankItems.Count; k < count; k++)
            {
                rankItems[k].SetData(k + 1, rankList[k]);
            }
            grid.Reposition();
        }
        if (time != null)
        {
            //Debug.Log("GameCenter.treasureTroveMng.RankTime" + GameCenter.treasureTroveMng.RankTime);
            time.StartIntervalTimer(GameCenter.treasureTroveMng.RankTime);
        }
        //if (myRankItemUI != null)
        //{
        //    TreasureRankItemUI item = myRankItemUI.CreateNew(grid.transform);
        //}
        otherRankItemUI.gameObject.SetActive(false);
    }
예제 #20
0
 void ShowMountInfo()
 {
     //显示幻兽信息
     if (MountRefDate != null)
     {
         int         id = MountRefDate.mountId;
         FDictionary mountSkinInfoDic = GameCenter.newMountMng.mountSkinList;
         nameLab.text = MountRefDate.mountName;
         if (item != null)
         {
             item.FillInfo(new EquipmentInfo(MountRefDate.itemID, EquipmentBelongTo.PREVIEW));
             item.itemName.gameObject.SetActive(false);
             if (item.itemIcon.GetComponent <UISpriteEx>() != null)
             {
                 item.itemIcon.GetComponent <UISpriteEx>().IsGray = UISpriteEx.ColorGray.normal;
             }
             if (!mountSkinInfoDic.ContainsKey(id))
             {
                 if (item.itemIcon.GetComponent <UISpriteEx>() != null)
                 {
                     item.itemIcon.GetComponent <UISpriteEx>().IsGray = UISpriteEx.ColorGray.Gray;
                 }
             }
             else
             {
                 //MountInfo skin = mountSkinInfoDic[id] as MountInfo;
             }
         }
         if (mountSkinInfoDic.ContainsKey(id))//该皮肤玩家已经拥有
         {
             MountInfo info = mountSkinInfoDic[id] as MountInfo;
             if (info.SkinRemainTime != 0)//限时
             {
                 timer.StartIntervalTimer(info.SkinRemainTime);
                 timer.onTimeOut = (x) =>
                 {
                     timeLab.text = ConfigMng.Instance.GetUItext(84);
                 };
             }
             else//这个幻兽是永久拥有的
             {
                 timeLab.gameObject.SetActive(false);
             }
             return;
         }
         timeLab.text = ConfigMng.Instance.GetUItext(84);
     }
 }
예제 #21
0
 void Refresh()
 {
     if (timer != null)
     {
         timer.gameObject.SetActive(false);
     }
     if (spRed != null)
     {
         spRed.gameObject.SetActive(false);
     }
     isShowRed = false;
     foreach (RoyalTreaureData data in GameCenter.royalTreasureMng.royalTreasureDic.Values)
     {
         if (!data.curState && data.restTime != 0)//宝箱在倒计时
         {
             if (timer != null)
             {
                 timer.gameObject.SetActive(true);
                 timer.StartIntervalTimer(data.restTime);
                 timer.onTimeOut = delegate
                 {
                     timer.gameObject.SetActive(false);
                     if (spRed != null)
                     {
                         spRed.gameObject.SetActive(true);
                     }
                 };
             }
         }
         if (!data.curState && data.restTime == 0)//宝箱未领取
         {
             isShowRed = true;
         }
     }
     if (GameCenter.royalTreasureMng.royalTreasureDic.Count != 0)//新需求 当前有宝箱并且都未开启的情况下也显示红点
     {
         if (!GameCenter.royalTreasureMng.isOpeningBox)
         {
             //Debug.Log("有宝箱但是都没有开启");
             if (spRed != null)
             {
                 spRed.gameObject.SetActive(true);
             }
         }
     }
     GameCenter.mainPlayerMng.SetFunctionRed(FunctionType.ROYALBOX, isShowRed);
 }
예제 #22
0
 void ShowUpTip()
 {
     if (tipGo != null)
     {
         tipGo.SetActive(true);
     }
     if (timerDown != null)
     {
         timerDown.StartIntervalTimer(GameCenter.activityMng.countDownTime);
         timerDown.onTimeOut = (x) =>
         {
             if (tipGo != null)
             {
                 tipGo.SetActive(false);
             }
         };
     }
 }
예제 #23
0
    private void Refresh()
    {
        bool isAppear = (info.AppearTime <= (int)Time.realtimeSinceStartup);

        if (nameLabel != null)
        {
            nameLabel.text = isAppear ? info.bossName.ToString() : string.Format(colorStr, info.bossName);
        }
        if (levelLabel != null)
        {
            levelLabel.text = isAppear ? info.CurBossRef.needLevel.ToString() : string.Format(colorStr, info.CurBossRef.needLevel);
        }
        if (labAppear != null)
        {
            labAppear.enabled = isAppear;
        }
        if (timeGo != null)
        {
            timeGo.SetActive(!isAppear);
        }
        if (!isAppear)
        {
            if (timer != null)
            {
                timer.StartIntervalTimer(info.AppearTime - (int)Time.realtimeSinceStartup);
                timer.onTimeOut = (x) =>
                {
                    if (timeGo != null)
                    {
                        timeGo.SetActive(false);
                    }
                    if (labAppear != null)
                    {
                        labAppear.enabled = true;
                    }
                    if (GameCenter.bossChallengeMng != null)
                    {
                        GameCenter.bossChallengeMng.BossRelive(info);
                    }
                };
            }
        }
    }
예제 #24
0
    /// <summary>
    /// 点击BUFF图标
    /// </summary>
    void OnClickBuff(GameObject obj)
    {
        int m = (int)UIEventListener.Get(obj).parameter;

        buffDesGo.SetActive(true);
        if (buffDes != null)
        {
            buffDes.text = curBuffList[m].BuffDes;
        }
        if (buffTime != null)
        {
            buffTime.StartIntervalTimer(curBuffList[m].RestSeconds);
            buffTime.onTimeOut = delegate
            {
                buffDesGo.SetActive(false);
                buffBtn[m].gameObject.SetActive(false);
            };
        }
    }
예제 #25
0
    void OnArenaServerReward()
    {
        rewardCloseTime.StartIntervalTimer(5);
        rewardCloseTime.onTimeOut = delegate {
            reward.SetActive(false);
        };
        reward.SetActive(true);
        if (rewardBtnEx != null)
        {
            rewardBtnEx.IsGray = (GameCenter.arenaMng.ArenaServerDataInfo.state > 0) ?UISpriteEx.ColorGray.Gray : UISpriteEx.ColorGray.normal;
        }
        BoxCollider rewardBox = rewardBtn.GetComponent <BoxCollider>();

        if (rewardBox != null)
        {
            rewardBox.enabled = GameCenter.arenaMng.ArenaServerDataInfo.state <= 0;
        }
        rewardBtnEffect.SetActive(GameCenter.arenaMng.ArenaServerDataInfo.state <= 0);
    }
예제 #26
0
 void Refresh()
 {
     if (diamoNums != null)
     {
         diamoNums.text = GameCenter.mainPlayerMng.MainPlayerInfo.DiamondCountText;
     }
     DestroyItem();
     if (GameCenter.openServerRewardMng.ServerData != null)
     {
         Vector3 V3 = Vector3.zero;
         serverData = GameCenter.openServerRewardMng.ServerData;
         if (remainTime != null)
         {
             remainTime.StartIntervalTimer(serverData.remainTime);
             remainTime.onTimeOut = (x) => {
                 GameCenter.openServerRewardMng.C2S_AskAllOpenServerRewardInfo();
             };
         }
         for (int i = 0, max = serverData.rewardItems.Count; i < max; i++)
         {
             if (rewardsGird == null || rewardInstance == null)
             {
                 return;
             }
             GameObject obj = Instantiate(rewardInstance) as GameObject;
             if (obj == null)
             {
                 return;
             }
             Transform parentTransf = rewardsGird.transform;
             obj.transform.parent        = parentTransf;
             obj.transform.localPosition = V3;
             obj.transform.localScale    = Vector3.one;
             obj.SetActive(true);
             V3 = new Vector3(V3.x + 300, V3.y, V3.z);
             OpenServerRewardItemUI ui = obj.GetComponent <OpenServerRewardItemUI>();
             if (ui != null)
             {
                 ui.Refresh(serverData.rewardItems[i]);
             }
         }
     }
 }
예제 #27
0
 void Refresh()
 {
     if (getRebackLab != null)
     {
         getRebackLab.text = GameCenter.openServerRewardMng.rebackPercent.ToString();
     }
     if (getRebackdesLab != null)
     {
         getRebackdesLab.text = GameCenter.openServerRewardMng.rebackPercent.ToString();
     }
     if (remainTime != null)
     {
         remainTime.StartIntervalTimer(GameCenter.openServerRewardMng.reminTime);
         remainTime.onTimeOut = (x) =>
         {
             GameCenter.openServerRewardMng.reminTime = 0;
         };
     }
 }
예제 #28
0
    public void Refresh(List <reward_list> _list)
    {
        //倒计时结束跳出副本
        if (timer != null)
        {
            timer.StartIntervalTimer(30);
        }
        timer.onTimeOut = delegate { GameCenter.duplicateMng.C2S_OutCopy(); };
        for (int i = 0, max = _list.Count; i < max; i++)
        {
            switch (_list[i].type)
            {
            case 1:
                if (whiteOrb != null)
                {
                    whiteOrb.text = _list[i].num + "/40";
                }
                break;

            case 2:
                if (greenOrb != null)
                {
                    greenOrb.text = _list[i].num.ToString();
                }
                break;

            case 3:
                if (blueOrb != null)
                {
                    blueOrb.text = _list[i].num.ToString();
                }
                break;

            case 4:
                if (violetOrb != null)
                {
                    violetOrb.text = _list[i].num.ToString();
                }
                break;
            }
        }
    }
예제 #29
0
    void Awake()
    {
        time.StartIntervalTimer(99);
        titil.SetActive(false);
        go.SetActive(false);
        ready.SetActive(false);
        ko.SetActive(false);

        GameCenter.duplicateMng.OnOpenArenaSettlement = delegate {
            if (!GameCenter.duplicateMng.CopySettlementDataInfo.showKo)
            {
                GameCenter.uIMng.SwitchToUI(GUIType.ARENERESULT);
                return;
            }
            titil.SetActive(true);
            ko.SetActive(true);
            CancelInvoke("CloseKo");
            Invoke("CloseKo", 1f);
        };
    }
예제 #30
0
    /// <summary>
    /// 战场时间
    /// </summary>
    void ShowTime()
    {
        int time = GameCenter.dungeonMng.DungeonTime;

        if (timer != null)
        {
            timer.StartIntervalTimer(time);
        }
        if (worningTimer != null)
        {
            worningTimer.StartIntervalTimer(time - 60);
            worningTimer.onTimeOut = (x) =>
            {
                timer.transform.parent.gameObject.SetActive(false);
                if (oneMinWorn != null)
                {
                    oneMinWorn.SetActive(true);
                }
            };
        }
    }