private void ButtonClickCallback(GameObject button) { if (RPOSWindow.GameObjectEqual(button, this._closeButton)) { this.CloseButtonClicked(); } else if (this.bumpers != null) { int count = this.bumpers.Count; if (count > 0 && button) { UIButton component = button.GetComponent <UIButton>(); if (component) { for (int i = 0; i < count; i++) { if (component == this.bumpers[i].button) { this.OnBumperClick(this.bumpers[i]); return; } } } } } }