/// <summary> /// Sends the server a request for purchasing the selected avatar /// in gold, closes <see cref="popupBuyAvatar">. The confirmation /// occurs after the server process the request and a popup will show up. /// With the confirmation status. /// </summary> public void OnBuyGold(object sender) { //send request ServerInformationHandler.AvatarShopBuyAvatarGold(selectedAvatarMetadata); PopupHandler.Remove(popupBuyAvatar); buyButton.Disable(true); tryButton.Disable(true); }