//显示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(); }
void OnDestroy() { Ins = null; }
void Awake() { Ins = this; }