Пример #1
0
        /// <summary>
        /// Add secret emag functionality to radar
        /// </summary>
        private void AddEmagItems()
        {
            EntryList.AddItems(MapIconType.Human, GetObjectsOf <PlayerScript>(player => !player.IsDeadOrGhost));
            EntryList.AddItems(MapIconType.Ian, GetObjectsOf <CorgiAI>());
            EntryList.AddItems(MapIconType.Nuke, GetObjectsOf <Nuke>());

            RescanElements();

            StartRefresh();
        }
Пример #2
0
    private void StartNormalOperation()
    {
//			EntryList.AddItems( MapIconType.Airlock, GetObjectsOf<AirLockAnimator>( null, "AirLock" ) );
        EntryList.AddItems(MapIconType.Ship, GetObjectsOf(new HashSet <MatrixMove>(new[] { MatrixMove })));
        var stationBounds = MatrixManager.Get(0).MetaTileMap.GetBounds();
        int stationRadius = (int)Mathf.Abs(stationBounds.center.x - stationBounds.xMin);

        EntryList.AddStaticItem(MapIconType.Station, stationBounds.center, stationRadius);

        EntryList.AddItems(MapIconType.Waypoint, new List <GameObject>(new[] { Waypoint }));

        RescanElements();

        StartRefresh();
    }
Пример #3
0
    private void StartNormalOperation()
    {
        EntryList.AddItems(MapIconType.Ship, GetObjectsOf <MatrixMove>(
                               mm => mm != MatrixMove && //ignore current ship
                               (mm.HasWorkingThrusters || mm.gameObject.name.Equals("Escape Pod"))   //until pod gets engines
                               ));

        EntryList.AddItems(MapIconType.Asteroids, GetObjectsOf <Asteroid>());
        var stationBounds = MatrixManager.Get(0).MetaTileMap.GetBounds();
        int stationRadius = (int)Mathf.Abs(stationBounds.center.x - stationBounds.xMin);

        EntryList.AddStaticItem(MapIconType.Station, stationBounds.center, stationRadius);

        EntryList.AddItems(MapIconType.Waypoint, new List <GameObject>(new[] { Waypoint }));

        RescanElements();

        StartRefresh();
    }