protected void OnEquipWing(int wingId, int wingLv, bool isHidden) { WingUI.wingIdLast = wingId; WingUI wingUI = UIManagerControl.Instance.GetUIIfExist("WingUI") as WingUI; if (wingUI != null) { wingUI.Refresh(); } WingUpgradeUI wingUpgradeUI = UIManagerControl.Instance.GetUIIfExist("WingUpgradeUI") as WingUpgradeUI; if (wingUpgradeUI != null) { wingUpgradeUI.Refresh(); } WingSelectUI wingSelectUI = UIManagerControl.Instance.GetUIIfExist("WingSelectUI") as WingSelectUI; if (wingSelectUI != null) { wingSelectUI.RefreshWings(); } }
private void OnWingInfoChangeNty(short state, WingInfoChangeNty msg = null) { if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } int cfgId = msg.wingInfo.cfgId; WingManager.wingInfoDict.set_Item(cfgId, msg.wingInfo); if (WingManager.wingInfoDict.get_Item(cfgId).overdueUtc == -1) { WingManager.wingInfoDict.Remove(cfgId); wings wingInfo = WingManager.GetWingInfo(cfgId); string text = string.Format(GameDataUtils.GetChineseContent(237031, false), wingInfo.name); UIManagerControl.Instance.ShowToastText(text, 2f, 2f); } WingSelectUI wingSelectUI = UIManagerControl.Instance.GetUIIfExist("WingSelectUI") as WingSelectUI; if (wingSelectUI != null) { wingSelectUI.RefreshWings(); } }