Beispiel #1
0
    public ConstructionSiteObject createConstructionSite()
    {
        XUtils.check(isPossibleToBuild());

        ConstructionSiteObject theConstructionSite = XUtils.createObject(
            getBuildingScheme().constructionSite, transform
            );

        theConstructionSite.init(_carCity);

        theConstructionSite.transform.SetParent(transform.parent, true);
        theConstructionSite.gameObject.layer = gameObject.layer;

        return(theConstructionSite);
    }