public override void SearchPropLinked()
    {
        _carsList = new List <GameObject>();

        LinkDatabase lLinkDatabase = LinkDatabase.Instance;

        _carsList    = lLinkDatabase.GetLinkObjects(buildingLink, typeof(CarItemProp));
        _carsCompany = lLinkDatabase.GetLinkObjects(buildingLink, typeof(CarsCompanyProp))[0];
        propLinked   = lLinkDatabase.GetLinkObjects(buildingLink, typeof(CarsCompanyProp))[0];
    }
Example #2
0
    public override void SearchPropLinked()
    {
        base.SearchPropLinked();
        normalHousesLinked = new List <GameObject>();
        metroLinked        = new List <GameObject>();
        citizensList       = new List <GameObject>();

        LinkDatabase lLinkDatabase = LinkDatabase.Instance;

        normalHousesLinked = lLinkDatabase.GetLinkObjects(buildingLink, typeof(HouseProp));
        citizensList       = lLinkDatabase.GetLinkObjects(buildingLink, typeof(CitizenProp));
        metroLinked        = lLinkDatabase.GetLinkObjects(buildingLink, typeof(MetroProp));
    }
Example #3
0
        public virtual void SearchPropLinked()
        {
            LinkDatabase      lLinkDatabase = LinkDatabase.Instance;
            List <GameObject> foundObjs     = lLinkDatabase.GetLinkObjects(buildingLink, typeof(MainItemProp));

            if (foundObjs.Count == 1)
            {
                propLinked = foundObjs[0];
            }
        }