Exemplo n.º 1
0
 /**
  * Update is called once per frame
  **/
 private void Update()
 {
     if (!mOSCController.IsCameraOK())   //go to error state and stay inside
     {
         // For logs
         if (mErrorCount < 1)
         {
             Logger.Instance.WriteError(mCurrentState);
             mErrorCount++;
         }
         mCamera.StopRotation();
         mCurrentState = ScreensStates.ERROR;
         UpdateScreen();
     }
     else
     {
         //handle user interactions
         ManageStates();
         ResetButtons();
     }
 }