Esempio n. 1
0
        //刷新星星收集信息
        private void UpdateBoxInfo()
        {
            DaemonCopyAwardVo awardInfo = Singleton <DaemonIslandMode> .Instance.GetAdditionalAwardInfo(selectWorldId);

            SetBoxState(getStarsNum, 6, Box1, awardInfo.isGettedAward1);
            SetBoxState(getStarsNum, 12, Box2, awardInfo.isGettedAward2);
            SetBoxState(getStarsNum, 18, Box3, awardInfo.isGettedAward3);
        }
Esempio n. 2
0
        //获取奖励领取情况
        public DaemonCopyAwardVo GetAdditionalAwardInfo(uint cityId)
        {
            DaemonCopyAwardVo awardInfo = new DaemonCopyAwardVo();

            for (int i = 0; i < _daemonAwardInfo.Count; ++i)
            {
                if (_daemonAwardInfo[i].cityid == cityId)
                {
                    awardInfo.isGettedAward1 = _daemonAwardInfo[i].status1 > 0? true: false;
                    awardInfo.isGettedAward2 = _daemonAwardInfo[i].status2 > 0? true: false;
                    awardInfo.isGettedAward3 = _daemonAwardInfo[i].status3 > 0? true: false;
                    return(awardInfo);
                }
            }
            awardInfo.isGettedAward1 = false;
            awardInfo.isGettedAward2 = false;
            awardInfo.isGettedAward3 = false;
            return(awardInfo);
        }