1234567891011121314151617181920212223242526272829 |
- using System.Collections.Generic;
- using ET;
- using GFGGame;
- namespace ET
- {
- }
- namespace GFGGame
- {
- public static class SkillSProxy
- {
- public static async ETTask<bool> ReqUpgradeCardSkill(int cardId, int skillId)
- {
- M2C_UpgradeCardSkill response = null;
- response = (M2C_UpgradeCardSkill)await MessageHelper.SendToServer(new C2M_UpgradeCardSkill() { CardId = cardId, SkillId = skillId });
- if (response != null)
- {
- if (response.Error == ErrorCode.ERR_Success)
- {
- SkillDataManager.Instance.UpdateCardSkill(response.CardId, response.SkillId, response.SkillLvl);
- EventAgent.DispatchEvent(ConstMessage.CARD_UP_SKILL);
- return true;
- }
- }
- return false;
- }
- }
- }
|