Exemplo n.º 1
0
 void GetInput()
 {
     //responsible for setting our input variables
     if (!editingSettings)
     {
         if (!mobile.useMobileInput)
         {
             try{ panInput = Input.GetAxis(input.PAN); }
             catch (System.Exception) { Debug.Log("Invalid pan input. Please insert a valid value such as Fire1"); }
             try { orbitInput = Input.GetAxis(input.ORBIT_Y); }
             catch (System.Exception) { Debug.Log("Invalid orbit input. Please insert a valid value such as Fire2"); }
             zoomInput = Input.GetAxis(input.ZOOM);
         }
         else
         {
             singleTouch.UpdateTouchInput();
             multiTouch.UpdateMultiTouchInput();
             zoomInput  = -multiTouch.PinchInput;
             orbitInput = multiTouch.SpinInput;
         }
     }
 }