コード例 #1
0
 //更新所有加载项目的时间
 public void updateTime()
 {
     if (sample.type == NoticeType.EXCHANGENOTICE || sample.type == NoticeType.NEW_EXCHANGE)
     {
         for (int i = 0; i < nodeList.Count; i++)
         {
             if (nodeList [i] == null)
             {
                 continue;
             }
             NoticeActivityExchangeBarCtrl button = nodeList [i].GetComponent <NoticeActivityExchangeBarCtrl> ();
             button.showTime();
         }
     }
     else if (sample.type == NoticeType.TOPUPNOTICE || sample.type == NoticeType.COSTNOTICE || sample.type == NoticeType.TIME_RECHARGE ||
              sample.type == NoticeType.NEW_RECHARGE || sample.type == NoticeType.NEW_CONSUME)
     {
         for (int i = 0; i < nodeList.Count; i++)
         {
             if (nodeList [i] == null)
             {
                 continue;
             }
             NoticeActivityRechargeBarCtrl button = nodeList [i].GetComponent <NoticeActivityRechargeBarCtrl> ();
             button.showTime();
         }
     }
     else if (sample.type == NoticeType.CONSUME_REBATE)
     {
         //消费返利条目暂时没有时间限制
     }
 }