void Update() { if (Session.Status != SessionStatus.Tracking) { int lostTrackingSleepTimeout = 15; Screen.sleepTimeout = lostTrackingSleepTimeout; return; } Screen.sleepTimeout = SleepTimeout.NeverSleep; ProcessTouches(); scoreboard.SetScore(snakeController.GetLength()); }
void Update() { // The session status must be Tracking in order to access the Frame. if (Session.Status != SessionStatus.Tracking) { int lostTrackingSleepTimeout = 15; Screen.sleepTimeout = lostTrackingSleepTimeout; return; } Screen.sleepTimeout = SleepTimeout.NeverSleep; ProcessTouches(); scoreboard.SetScore(snakeController.GetLength()); }
// Update is called once per frame void Update() { // The tracking state must be FrameTrackingState.Tracking in order to access the Frame. if (Frame.TrackingState != TrackingState.Tracking) { const int LOST_TRACKING_SLEEP_TIMEOUT = 15; Screen.sleepTimeout = LOST_TRACKING_SLEEP_TIMEOUT; return; } Screen.sleepTimeout = SleepTimeout.NeverSleep; ProcessNewPlanes(); ProcessTouches(); scoreboard.SetScore(snakeController.GetLength()); }
void Update() { // Detecte si le téléphone est en mouvement ou non if (Session.Status != SessionStatus.Tracking) { int lostTrackingSleepTimeout = 15; Screen.sleepTimeout = lostTrackingSleepTimeout; return; } Screen.sleepTimeout = SleepTimeout.NeverSleep; // Add to the end of Update() ProcessTouches(); scoreboard.SetScore(snakeController.GetLength()); }