public void BuyCostumeEnd(GS_COSTUME_BUY_ACK ack) { if (ack == null) { return; } if (ack.bIsGift) { this.ShowCostumeGiftSuccessMessage(ack); } else { this.UpdateMyCostumeInfo(ack); } }
private void UpdateMyCostumeInfo(GS_COSTUME_BUY_ACK ack) { if (ack == null) { return; } this.ShowBuyCostumeMessage(ack.i32CostumeUnique); NrTSingleton <NrCharCostumeTableManager> .Instance.UpdateCostumeCount(ack.i32CostumeUnique, 1, 1); CostumeRoom_Dlg costumeRoom_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.COSTUMEROOM_DLG) as CostumeRoom_Dlg; if (costumeRoom_Dlg != null) { costumeRoom_Dlg.Refresh(true, true); } Debug.Log("BuyCostumeUnique : " + ack.i32CostumeUnique); }
private void ShowCostumeGiftSuccessMessage(GS_COSTUME_BUY_ACK ack) { if (ack == null) { return; } string textFromNotify = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("706"); string text = TKString.NEWString(ack.strGiftUserName); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref textFromNotify, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("706"), "Product", NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumeName(ack.i32CostumeUnique), "targetname", text }); Main_UI_SystemMessage.ADDMessage(textFromNotify); }