예제 #1
0
 public void Init(AddPlanPanel addPlanPanel, PlanData planData)
 {
     _addPlanPanel  = addPlanPanel;
     this.planData  = planData;
     planName.text  = planData.name;
     statsText.text = planData.workoutsPerWeek() + WORKOUTS_PER_WEEK_LABEL;
     UpdateColor();
     fitBoyDifficulty.Init(WorkoutGenerator.Instance.GetSpriteForDifficulty(planData.planDifficulty));
 }
예제 #2
0
 void Awake()
 {
     Instance = this;
 }