public void Show() { ExerciseSelectionManager.instance.OnDeselect(); if (createNewExcercise) { muscleGroup.Reset(); equipmentGroup.Reset(); isTimedToggle.isOn = false; nameInput.text = "New Excercise"; setDurationInput.text = "30"; } else { nameInput.text = currentExcercise.excerciseName; setDurationInput.text = currentExcercise.repDuration.ToString(); muscleGroup.SetIndex((int)currentExcercise.muscleGroup); equipmentGroup.SetIndex((int)currentExcercise.equipmentGroup); isTimedToggle.isOn = currentExcercise.setIsTimed; } canvasGroup.blocksRaycasts = true; canvasGroup.DOFade(1, 0.5f); canvasGroup.interactable = true; muscleGroup.UpdateText(); }
public override IEnumerator Enter() { heatmapState = HeatmapState.Today; uiEnumSelector.SetIndex((int)heatmapState); uiEnumSelector.UpdateText(); UpdateHeatmap(); heatmapMuscleList.DisplayItems(); return(base.Enter()); }