private void ExecuteCallback() { if (callback != null) { callback(permissions, AndroidRuntimePermissions.ProcessPermissionRequest(permissions, result)); callback = null; } }
private void ExecuteCallback(string result) { try { if (callback != null) { callback(permissions, AndroidRuntimePermissions.ProcessPermissionRequest(permissions, result)); } } finally { Object.Destroy(callbackHelper.gameObject); } }