Exemple #1
0
    void ExerciseUpdate()
    {
        switch (Routine)
        {
        case Exercise.Bench_Press:
            if (BenchPress.instance == null)
            {
                BenchPress.Initilize(controller.OrientationLeft, controller.OrientationRight);
            }
            else
            {
                BenchPress.instance.Update(
                    controller.OrientationLeft,
                    controller.AccelerationLeft,
                    controller.OrientationRight,
                    controller.AccelerationRight);
            }
            break;

        case Exercise.Bicep_Curl:
            if (BicepCurl.instance == null)
            {
                BicepCurl.Initilize(controller.OrientationLeft, controller.OrientationRight);
            }
            else
            {
                BicepCurl.instance.Update(
                    controller.OrientationLeft,
                    controller.AccelerationLeft,
                    controller.OrientationRight,
                    controller.AccelerationRight);
            }
            break;

        case Exercise.Inverted_Bench_Press:
            if (InvertedBenchPress.instance == null)
            {
                InvertedBenchPress.Initilize(controller.OrientationLeft, controller.OrientationRight);
            }
            else
            {
                InvertedBenchPress.instance.Update(
                    controller.OrientationLeft,
                    controller.AccelerationLeft,
                    controller.OrientationRight,
                    controller.AccelerationRight);
            }
            break;
        }
    }
Exemple #2
0
    void FinishExercise()
    {
        switch (Routine)
        {
        case Exercise.Bench_Press:
            BenchPress.Complete();
            break;

        case Exercise.Bicep_Curl:
            BicepCurl.Complete();
            break;

        case Exercise.Inverted_Bench_Press:
            InvertedBenchPress.Complete();
            break;
        }
    }
Exemple #3
0
 public static void Complete()
 {
     instance = null;
 }
Exemple #4
0
 public static void Initilize(Vector3 oLeft, Vector3 oRight)
 {
     instance = new BicepCurl(oLeft, oRight);
 }