Ejemplo n.º 1
0
        public DataOfDate(long date) : base()
        {
            statisticData = StatisticData.GetByDate(GameManager.ActivePatient, date);

            this.statisticTitle  = new DateTime(date).ToString("dd.MM.yyyy");
            this.commonCountText = GetFavoriteExercise().Name;
            this.doneCountText   = StatisticData.ExercisesByDate(GameManager.ActivePatient, date, false).Count.ToString();
        }
Ejemplo n.º 2
0
        public ExerciseByDateOrder(PatientManager patientManager, long date, GameObject buttonPrefab, GameObject buttonStorage) : base(patientManager, buttonPrefab, buttonStorage)
        {
            var exercises = StatisticData.ExercisesByDate(GameManager.ActivePatient, date);

            foreach (var exerciseId in exercises)
            {
                var exercise = Model.GetModel <Exercise>(exerciseId);
                base.CreateButton(exercise.UnityObjectName, exercise.Name);
            }
        }