protected Vector2 DrawTowerList(float startX, float startY, List <UnitTower> towerList) { List <EItem> list = new List <EItem>(); for (int i = 0; i < towerList.Count; i++) { EItem item = new EItem(towerList[i].prefabID, towerList[i].unitName, towerList[i].icon); list.Add(item); } return(DrawList(startX, startY, window.position.width, window.position.height, list)); }
protected Vector2 DrawAbilityList(float startX, float startY, List <Ability> abilityList) { List <EItem> list = new List <EItem>(); for (int i = 0; i < abilityList.Count; i++) { EItem item = new EItem(abilityList[i].prefabID, abilityList[i].name, abilityList[i].icon); list.Add(item); } return(DrawList(startX, startY, window.position.width, window.position.height, list)); }