Esempio n. 1
0
 public void PeakAtExercise(ExerciseData exerciseToPeakAt)
 {
     _peakIndex = PlayModeManager.Instance.ActiveWorkout.exerciseData.IndexOf(exerciseToPeakAt);
     _container.SetActive(true);
     _lineSegmenter.Init(exerciseToPeakAt.totalInitialSets);
     _fitBoy.Init(exerciseToPeakAt.exerciseType);
     _exerciseName.text  = exerciseToPeakAt.name.ToString();
     _setAmount.text     = exerciseToPeakAt.totalInitialSets.ToString();
     _repAmount.text     = "x " + exerciseToPeakAt.repsPerSet.ToString();
     _weightAmount.text  = exerciseToPeakAt.weight.ToString() + " lb";
     _secondsAmount.text = exerciseToPeakAt.secondsToCompleteSet.ToString() + "s";
 }
Esempio n. 2
0
    private void Awake()
    {
        _spriteLists = new List <List <Sprite> >();

        for (int i = 0; i < numberOfSpriteListsToGenerate; i++)
        {
            List <Sprite> newSpriteList = new List <Sprite>();
            newSpriteList = spriteList1;

            _spriteLists.Add(newSpriteList);
        }

        _smartCarousel.Init(_spriteLists, 5);
        _lineSegmenter.Init(_spriteLists.Count);
    }
Esempio n. 3
0
 public void UpdateView(string labelText, int value)
 {
     label.text = labelText;
     lineSegmenter.Init(value);
 }