Exemplo n.º 1
0
        public ExerciseOrder(PatientManager patientManager, GameObject buttonPrefab, GameObject buttonStorage) : base(patientManager, buttonPrefab, buttonStorage)
        {
            var exercises = StatisticData.Exercises(GameManager.ActivePatient);

            foreach (var exerciseId in exercises)
            {
                var exercise = Model.GetModel <Exercise>(exerciseId);
                base.CreateButton(exercise.UnityObjectName, exercise.Name);
            }
        }
Exemplo n.º 2
0
 public StatisticView()
 {
     this.statisticTitle = GameManager.ActivePatient.Name;
     this.doneCountText  = StatisticData.Exercises(GameManager.ActivePatient, false).Count.ToString();
 }