public void OnLaunchDetected()
 {
     status = Localization.runModeLaunch;
     stopWatch.Restart();
     soundProvider.Play(SoundId.zero1_launch);
     Analytics.TrackEventRun(Analytics.EVENT_RUN_ZEROTOZERO_START);
 }
        public DemoAcceleromter(string mode, IDeviceAcceleromter accelerometer)
        {
            Debug.LogToFileMethod();

            if (mode.Equals("Acceleration"))
            {
                this.mode = new DemoModeAcceleration();
                Analytics.TrackEventRun(Analytics.EVENT_RUN_ACCELERATION_DEMO);
            }
            else if (mode.Equals("Brake"))
            {
                this.mode = new DemoModeBrake();
                Analytics.TrackEventRun(Analytics.EVENT_RUN_BRAKE_DEMO);
            }
            else // ZeroToZero
            {
                this.mode = new DemoModeZeroToZero();
                Analytics.TrackEventRun(Analytics.EVENT_RUN_ZEROTOZERO_DEMO);
            }

            accelerometerProvider = accelerometer;
            stopwatch             = new Stopwatch();
            isFirstRun            = true;
            status    = "init";
            countdown = new Stopwatch();
            countdown.Start();
        }
 public void OnFinished()
 {
     stopWatch.Stop();
     runCompleted = true;
     status       = Localization.runModeFinish;
     soundProvider.Play(SoundId.zero3_stopped);
     Analytics.TrackEventRun(Analytics.EVENT_RUN_ZEROTOZERO_STOP);
 }
 public void OnReset()
 {
     Reset();
     soundProvider.Play(SoundId.failure);
     Analytics.TrackEventRun(Analytics.EVENT_RUN_ZEROTOZERO_RESET);
 }
 public void OnLaunchDetected()
 {
     soundProvider.Play(SoundId.brk1_ready);
     Analytics.TrackEventRun(Analytics.EVENT_RUN_BRAKE_START);
 }
 public void OnFinished()
 {
     stopWatch.Stop();
     status = Localization.runModeFinish;
     Analytics.TrackEventRun(Analytics.EVENT_RUN_ACCELERATION_STOP);
 }