void PlayerActivityEventOk() { int gb = 0; COM_ActivityTable table = GamePlayer.Instance.ActivityTable; if (table == null) { return; } //GbLabel.text = GamePlayer.Instance.ActivityTable.reward_.ToString(); GbLabel.text = table.reward_.ToString(); for (int i = 0; i < ustItemList.Count; i++) { DailyQustCell aCell = ustItemList[i].GetComponent <DailyQustCell>(); for (int j = 0; j < table.activities_.Length; j++) { if (aCell.Adata._Id == table.activities_[j].actId_) { // ActivityData adata = ActivityData.GetData((int)table.activities_[j].actId_); // gb+=adata.reward_; // GbLabel.text = gb.ToString(); aCell.RefreshFinishProgress(table.activities_[j].counter_); } } } }
void PlayerActivityEventOk() { ClearActivity(); int gb = 0; COM_ActivityTable table = GamePlayer.Instance.ActivityTable; if (table == null) { return; } pBar.value = GamePlayer.Instance.ActivityTable.reward_ / 100f; if (yuandianSp.transform.localPosition.x >= 1158) { yuandianSp.transform.localPosition = new Vector3(1158, 0, 0); } else { yuandianSp.transform.localPosition = new Vector3(1158 * GamePlayer.Instance.ActivityTable.reward_ / 100f, 0, 0); } actCountLab.text = GamePlayer.Instance.ActivityTable.reward_.ToString(); for (int i = 0; i < dataObj_.Count; i++) { //if(!dataObj_[i].activeSelf)continue; HuoDongCell hcell = dataObj_[i].GetComponent <HuoDongCell>(); if (hcell == null) { continue; } for (int j = 0; j < table.activities_.Length; j++) { if (hcell.daData_ == null) { continue; } if (hcell.daData_.id_ == table.activities_[j].actId_) { hcell.RefreshFinishProgress(table.activities_[j].counter_); } } } }