Esempio n. 1
0
 public UnitInfoViewController(UnitInfoView view)
 {
     viewBase  = view;
     this.view = view;
     this.OnCreate();
     dataManager = DataManager.GetInstance();
 }
Esempio n. 2
0
 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();
             }
         }
     });
 }