public override void Dispose() { if (_input != null) { _input.Dispose(); } base.Dispose(); }
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 }