private void Start() { playerDailyReward = DataPlayer.GetModule <PlayerDailyReward>(); prefab = LoadResourceController.GetDailyRewardView(); dailyRewardCollection = LoadResourceController.GetDailyReward(); TimeManager.Ins.UpdateTime(UpdateView); }
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; }