Adam Salah 61fcd9bf82 outline when hovering unit upgrade (#15)
Reviewed-on: #15
Reviewed-by: EliaGingras1 <william-gin1@hotmail.com>
2025-07-29 21:39:59 +00:00

21 lines
610 B
C#

using UnityEngine;
public class House : Building
{
[SerializeField]
private BoxCollider2D rangeOutline;
public virtual float PopulationGiven => GlobalConfig.Instance.Current.populationGivenPerHouse;
public BoxCollider2D RangeOutline { get => rangeOutline; set => rangeOutline = value; }
public override void LevelStart()
{
ResourceManager.Instance.MaximumPopulation += PopulationGiven;
base.LevelStart();
}
public override void LevelDestroy()
{
ResourceManager.Instance.MaximumPopulation -= PopulationGiven;
base.LevelDestroy();
}
}