public UnitInfoViewController(UnitInfoView view) { viewBase = view; this.view = view; this.OnCreate(); dataManager = DataManager.GetInstance(); }
private void OnClickEnterUnitDetailsCallBack(int unitId) { UIManager.Instance.GetUIByType(UIType.UnitInfoUI, (ui, param) => { if (ui != null) { if (!ui.openState) { UnitInfoView view = ui as UnitInfoView; view.unitId = unitId; view.currentUnits = currentUnits; view.OnEnter(); } } }); }