public void ResetAll() { foreach (var c in CountersGroup.All) { c.Reset(); } Race.Turns.Clear(); if (Race.IsRunning) { Race.AddTurn(); } }
public void MakeATurn() { Race.AddTurn(); foreach (var c in CountersGroup.Segment) { var h = c as ISupportHistory; if (h != null) { h.Push(); } else { c.Reset(); } } if (LastLocaton != null) { MessagingHub.Send(QueueType.Race, new RaceEvent(LastLocaton, RaceEventTypes.Turn)); MessagingHub.Send(new VibrateCommand("1")); } //Speech?.Speak("Поворот"); }