async void OnApplicationQuit() { if (MagicOnionNetwork.IsConnected) { Application.CancelQuit(); await MagicOnionNetwork.DisconnectAsync(); Application.Quit(); } }
void OnApplicationQuit() { MagicOnionNetwork.DisconnectAsync(); }