Ejemplo n.º 1
0
 override public void Open(params System.Object[] parameters)
 {
     base.Open(parameters);
     if (parameters != null && parameters.Length > 0)
     {
         _dataUnit  = parameters[0] as DataUnit;
         _panelType = (PanelType)parameters[1];
         TankDataManager tankmanager = new TankDataManager();
         _unitData = tankmanager.InitUnitData(_dataUnit);
     }
 }
    public void UnitDetialPanelCB()
    {
        FormationDragItemUI dragUI = GetComponent <FormationDragItemUI> ();

        if (dragUI.state == FormationDragItemUI.STATE.SCROLLVIEW)
        {
            TankInfoPanel.PanelType type = TankInfoPanel.PanelType.TANKFACTORY;
            DataUnit dataUnit            = DataManager.instance.dataUnitsGroup.GetUnit(unitId);
            UIController.instance.CreatePanel(UICommon.UI_PANEL_TANKINFO, dataUnit, type);
        }
    }
Ejemplo n.º 3
0
 //详情
 void OnGoToDetail()
 {
     TankInfoPanel.PanelType type = TankInfoPanel.PanelType.TANKFACTORY;
     UIController.instance.CreatePanel(UICommon.UI_PANEL_TANKINFO, _dataUnit, type);
 }
Ejemplo n.º 4
0
 void onClickIcon()
 {
     TankInfoPanel.PanelType _type = TankInfoPanel.PanelType.TANKREPAIR;
     UIController.instance.CreatePanel(UICommon.UI_PANEL_TANKINFO, _dataUnit, _type);
 }