public static void StopReceiver() { if (Instance == null) { return; } Instance.Close(); }
public static void StopReceiver() { if (Instance == null) { return; } try{ Instance.Close(); }catch (Exception e) { Debug.LogException(e); DestroyImmediate(Instance); } }