Пример #1
0
    //显示0-4 全部-道术师-步兵-骑兵-弓弩手 供招募的
    public static void ShowEmploy(int type)
    {
        ArmyShopCtrl  ctrl     = WsWindow.Open <ArmyShopCtrl>(WsWindow.ArmyShop);
        RectTransform rectTran = ctrl.GetComponent <RectTransform>();

        if (rectTran != null)
        {
            rectTran.sizeDelta = new Vector2(0, 0);
            //rectTran.anchorMin = new Vector2(0, 0);
            //rectTran.anchorMax = new Vector2(1, 1);
        }
        ctrl.BindArmyType(type);
        ctrl.Reset();
        ctrl.UpdateUI();
    }
Пример #2
0
 void OnDestroy()
 {
     Ins = null;
 }
Пример #3
0
 void Awake()
 {
     Ins = this;
 }