private void Start()
 {
     playerDailyReward     = DataPlayer.GetModule <PlayerDailyReward>();
     prefab                = LoadResourceController.GetDailyRewardView();
     dailyRewardCollection = LoadResourceController.GetDailyReward();
     TimeManager.Ins.UpdateTime(UpdateView);
 }
示例#2
0
    private void Load()
    {
        dailyReward =
            JsonConvert.DeserializeObject <DailyRewardSaveLoad>(PlayerPrefs.GetString(KeyUtils.DAILY_REWARD_DATA));
        if (dailyReward == null)
        {
            dailyReward = new DailyRewardSaveLoad();
        }

        DAY_MAX = LoadResourceController.GetDailyReward().dataGroups.Length;
    }