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; } }
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; } }
public static void Complete() { instance = null; }
public static void Initilize(Vector3 oLeft, Vector3 oRight) { instance = new InvertedBenchPress(oLeft, oRight); }