Ejemplo n.º 1
0
        private static void ShowAvailableShips(Faction faction)
        {
            DestroyChildren(GameObject.Find("UI/Panels/SelectShipPanel/Panel").transform);
            availableShipsCounter = 0;

            foreach (ShipRecord ship in AllShips.OrderBy(s => s.Instance.ShipInfo.ShipName))
            {
                if (ship.Instance.ShipInfo.FactionsAll.Contains(faction) && !ship.Instance.IsHidden)
                {
                    if (ship.Instance.GetType().ToString().Contains(Edition.Current.NameShort))
                    {
                        ShowAvailableShip(ship, faction);
                    }
                }
            }
        }
Ejemplo n.º 2
0
        private static void ShowAvailableShips(Faction faction)
        {
            DestroyChildren(GameObject.Find("UI/Panels/SelectShipPanel/Panel").transform);
            availableShipsCounter = 0;

            foreach (ShipRecord ship in AllShips.OrderBy(s => s.Instance.FullType))
            {
                if (ship.Instance.factions.Contains(faction) && !ship.Instance.IsHidden)
                {
                    if (RuleSet.Instance.ShipIsAllowed(ship.Instance))
                    {
                        ShowAvailableShip(ship);
                    }
                }
            }
        }