Ejemplo n.º 1
0
 void OnApplicationQuit()
 {
     if (SystemInfo.operatingSystemFamily == OperatingSystemFamily.Windows)
     {
         DirectInputWrapper.Close();
     }
 }
Ejemplo n.º 2
0
 void OnDestroy()
 {
     //destroy if single one, otherwise transfer control
     if (inited == this)
     {
         inited = null;
         var other = FindObjectOfType <SteeringWheelInputController>();
         if (other != null)
         {
             other.Init();
         }
         else
         {
             if (SystemInfo.operatingSystemFamily == OperatingSystemFamily.Windows)
             {
                 DirectInputWrapper.Close();
             }
         }
     }
 }
Ejemplo n.º 3
0
 void OnDestroy()
 {
     DirectInputWrapper.Close();
 }