Пример #1
0
        private DateTime nextRewardTime;     // 下一次领取奖励的时间

        void OnEnable()
        {
            // 读取配置文件,创建预制件
            var itemInfomationList = JsonController.LoadItemInfomation("data");

            Initialize(itemInfomationList);
        }
Пример #2
0
        void Initialize(List <ItemInfomation> itemInfomationList)
        {
            // 配置领取时间间隔
            rewardDurationTime = JsonController.LoadDurationTime("data");
            // 刷新倒计时信息
            StartCoroutine(WaitForReward());

            CreatPrefeb(itemInfomationList);
        }
Пример #3
0
        // 商店界面刷新
        void refresh()
        {
            foreach (Transform child in panelCards.transform)
            {
                Destroy(child.gameObject);
            }

            // 读取配置文件,创建预制件
            var itemInfomationList = JsonController.LoadItemInfomation("data");

            CreatPrefeb(itemInfomationList);

            // 刷新倒计时信息
            StartCoroutine(WaitForReward());
        }