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)); }
void Awake() { Instance = this; }