- added art for house and UI - put population in ResourceManager - create house prefab - added code for adding and removing pop depending on entity - refactor harvesters so they inherit from ally - modify placeholders and buttons so that only units cost population - add events for population and resources changing - add population relative configs to global config - add start resources values to Levels - add debug feature for generating resources for free
10 lines
266 B
C#
10 lines
266 B
C#
using UnityEngine;
|
|
|
|
public class TilePlaceholder : DraggablePlaceholder
|
|
{
|
|
public LevelTile Tile { get; set; }
|
|
public override void Place()
|
|
{
|
|
LevelManager.Instance.DynamicTilemap.SetTile(Vector3Int.RoundToInt(transform.position), Tile);
|
|
}
|
|
} |