public bool OnReceiveDiceChangeDeckAck(ERandomwarsDiceErrorCode errorCode, int index, int[] arrayDiceId) { UI_Main.Get().obj_IndicatorPopup.SetActive(false); //RefreshDeck(); foreach (var deckInfo in listDeckInfo) { deckInfo.RefreshDiceIcon(true); } UI_Main.Get().panel_Dice.ui_MainStage.Set(); RefreshEquipedMarkObject(); return(true); }
public bool OnReceiveDiceUpgradeAck(ERandomwarsDiceErrorCode errorCode, MsgDiceInfo diceInfo, QuestData[] arrayQuestData, int updateGold) { UI_Main.Get().obj_IndicatorPopup.SetActive(false); if (errorCode == ERandomwarsDiceErrorCode.Success) { var info = UserInfoManager.Get().GetUserInfo(); if (info.dicGettedDice.ContainsKey(data.id)) { info.gold -= needGold; diceLevel++; info.dicGettedDice[data.id][0]++; info.dicGettedDice[data.id][1] -= needDiceCount; obj_Result.SetActive(true); StartCoroutine(SetDiceLevelUpResultCoroutine()); } // Quest UI_Popup_Quest.QuestUpdate(arrayQuestData); } return(true); }