コード例 #1
0
    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();
    }
コード例 #2
0
 public void Initialize()
 {
     currentCategory.Reset();
     ShowCurrentCategory();
 }