Esempio n. 1
0
        public virtual void Place()
        {
            var occupiedArea = Utilities.GetGridReference(transform.position);

            BuildGridManager.OccupyTiles(occupiedArea.X, occupiedArea.Z, View.Size, TileOccupant.PlayerBuilding);

            EventSystem.Publish(new PlayerBuildingPlacedEvent(this));
        }
Esempio n. 2
0
        public void Place()
        {
            int x = Mathf.FloorToInt(transform.position.x);
            int z = Mathf.FloorToInt(transform.position.z);

            BuildGridManager.OccupyTiles(x, z, Size, TileOccupant.CityBuilding);
            EventSystem.Publish(new CityBuildingPlacedEvent(this));
        }