Ejemplo n.º 1
0
 public void OnLaunchDetected()
 {
     status = Localization.runModeLaunch;
     stopWatch.Restart();
     soundProvider.Play(SoundId.zero1_launch);
     Analytics.TrackEventRun(Analytics.EVENT_RUN_ZEROTOZERO_START);
 }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 public void OnFinished()
 {
     stopWatch.Stop();
     runCompleted = true;
     status       = Localization.runModeFinish;
     soundProvider.Play(SoundId.zero3_stopped);
     Analytics.TrackEventRun(Analytics.EVENT_RUN_ZEROTOZERO_STOP);
 }
Ejemplo n.º 4
0
 public void OnReset()
 {
     Reset();
     soundProvider.Play(SoundId.failure);
     Analytics.TrackEventRun(Analytics.EVENT_RUN_ZEROTOZERO_RESET);
 }
Ejemplo n.º 5
0
 public void OnLaunchDetected()
 {
     soundProvider.Play(SoundId.brk1_ready);
     Analytics.TrackEventRun(Analytics.EVENT_RUN_BRAKE_START);
 }
Ejemplo n.º 6
0
 public void OnFinished()
 {
     stopWatch.Stop();
     status = Localization.runModeFinish;
     Analytics.TrackEventRun(Analytics.EVENT_RUN_ACCELERATION_STOP);
 }