public void OnAlternatePayButtonClicked(UXButton button) { this.closing = true; object modalResult = null; button.Enabled = false; if (!this.forDroids) { Service.Get <EventManager>().SendEvent(EventId.UINotEnoughSoftCurrencyBuy, base.ModalResultCookie); modalResult = PayMeScreen.MODALRESULT_CONFIRMED_ALTERNATE; } else if (GameUtils.BuyNextDroid(true)) { Service.Get <EventManager>().SendEvent(EventId.UINotEnoughDroidBuy, base.ModalResultCookie); modalResult = PayMeScreen.MODALRESULT_CONFIRMED_ALTERNATE; } this.Close(modalResult); }