Пример #1
0
 public override void Dispose()
 {
     if (_input != null)
     {
         _input.Dispose();
     }
     base.Dispose();
 }
Пример #2
0
    private IEnumerator WaitQuit()
    {
        if (type == InputType.DeviceBle)
        {
            input.Dispose();
            while (Connection._Instance.CurStatus == ConnectStatus.Connected)
            {
                yield return(null);
            }
            yield return(null);
        }
#if UNITY_EDITOR
        EditorApplication.isPlaying = false;
#else
        Application.Quit();
#endif
    }