Esempio n. 1
0
    private void MakeHouse(IntPoint2D tileLoc)
    {
        GameObject house = housePool.GetActualHouse(tileLoc);
        HouseData  data  = new HouseData(tileLoc);

        this.scenarioInfo.MakeHouse(tileLoc, house);
        HouseManager houseMgr = house.GetComponent <HouseManager> () as HouseManager;

        houseMgr.AssignHouseData(data);
        houseMgr.StartUpdates();
        popMgr.AddHouse(tileLoc, houseMgr);
    }