Esempio n. 1
0
    private void SetProgressData()
    {
//			if (_missionModel.StarActivityInfoPb==null)
//			{
//			  _progressBar.sizeDelta =new Vector2(0,_progressBar.sizeDelta.y);
//			}
//			else
//			{
//				var playerProgress = _missionModel.StarActivityInfoPb.Progress;
//				var allMissionNum = _missionModel.StarActivityNum;
//				var progress =(int) (playerProgress * _max / allMissionNum);
//				_progressBar.sizeDelta =new Vector2(progress,_progressBar.sizeDelta.y);
//			}

        _progressBar.sizeDelta = new Vector2(_missionModel.StarActivityProgress(), _progressBar.sizeDelta.y);
    }