private void LoadDailyRewardModel()
    {
        SaveDailyReward saveDailyReward = LoadDailyReward();

        //this._bLoadDailySucess = true;
        if (saveDailyReward == null)
        {
            CheckDailyReward.GetInstance().UpdateFirstPlay();
            int coin     = CheckDailyReward.GetInstance().GetCoin();
            int indexDay = CheckDailyReward.GetInstance().DailyRewardModel.IndexDay;
            ////////oogleAnalyticsV4.getInstance().LogEvent("Daily Reward", "Daily Reward " + indexDay.ToString(), string.Empty, 0L);

            DailyRewarDialog dialog = GameManager.Instance.OnShowDialog <DailyRewarDialog>("DailyAward");
            dialog.ParseData(coin, indexDay);
            this.AddDiamond(coin);
            //this._panelDailyReward.Show(indexDay, coin);
            //int num = PlayerPrefs.GetInt(Constant.UserCoin);
            //num += coin;
            //PlayerPrefs.SetInt(Constant.UserCoin, num);

            SaveDailyRewardModel(CheckDailyReward.GetInstance().DailyRewardModel);
        }
        else
        {
            CheckDailyReward.GetInstance().DailyRewardModel = saveDailyReward;
            this.ProcessDailyReward();
        }
    }
 private void ProcessDailyReward()
 {
     if (CheckDailyReward.GetInstance().Check())
     {
         int coin                = CheckDailyReward.GetInstance().GetCoin();
         int indexDay            = CheckDailyReward.GetInstance().DailyRewardModel.IndexDay;
         DailyRewarDialog dialog = GameManager.Instance.OnShowDialog <DailyRewarDialog>("DailyAward");
         dialog.ParseData(coin, indexDay);
         this.AddDiamond(coin);
         SaveDailyRewardModel(CheckDailyReward.GetInstance().DailyRewardModel);
     }
 }