예제 #1
0
 void OnApplicationQuit()
 {
     if (SystemInfo.operatingSystemFamily == OperatingSystemFamily.Windows)
     {
         DirectInputWrapper.Close();
     }
 }
예제 #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();
             }
         }
     }
 }
예제 #3
0
 void OnDestroy()
 {
     DirectInputWrapper.Close();
 }