private void RecvWingUpLvRes(short state, WingUpLvRes msg = null) { if ((int)state == Status.ITEM_NOT_ENOUGH_COUNT) { LinkNavigationManager.ItemNotEnoughToLink(msg.itemId, true, null, true); return; } if (state != 0) { StateManager.Instance.StateShow(state, msg.itemId); return; } WingManager.wingInfoDict.set_Item(msg.wingInfo.cfgId, msg.wingInfo); WingUpgradeUI wingUpgradeUI = UIManagerControl.Instance.GetUIIfExist("WingUpgradeUI") as WingUpgradeUI; if (wingUpgradeUI != null) { wingUpgradeUI.Refresh(); wingUpgradeUI.PlayProgressSpine(); wingUpgradeUI.PlayUpgradeSpine(); } WingUI wingUI = UIManagerControl.Instance.GetUIIfExist("WingUI") as WingUI; if (wingUI != null) { wingUI.CheckBadge(); } ActorUI actorUI = UIManagerControl.Instance.GetUIIfExist("ActorUI") as ActorUI; if (actorUI != null) { actorUI.CheckBadge(); } }
private void RecvWingComposeRes(short state, WingComposeRes msg = null) { if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } WingManager.wingInfoDict.set_Item(msg.wingInfo.cfgId, msg.wingInfo); WingUpgradeUI wingUpgradeUI = UIManagerControl.Instance.GetUIIfExist("WingUpgradeUI") as WingUpgradeUI; if (wingUpgradeUI != null) { wingUpgradeUI.PlayActiveSuccess(); wingUpgradeUI.Refresh(); } WingSelectUI wingSelectUI = UIManagerControl.Instance.GetUIIfExist("WingSelectUI") as WingSelectUI; if (wingSelectUI != null) { wingSelectUI.PlayActiveSuccess(msg.wingInfo.cfgId); } WingUI wingUI = UIManagerControl.Instance.GetUIIfExist("WingUI") as WingUI; if (wingUI != null) { wingUI.CheckBadge(); } ActorUI actorUI = UIManagerControl.Instance.GetUIIfExist("ActorUI") as ActorUI; if (actorUI != null) { actorUI.CheckBadge(); } }