public static void RequestBuilder(ConstructionAreaBuilding ca, int count = 3) { for (int i = 0; i < count; i++) { CreateBuilderAnt(ca.transform, null); } }
public static void UpdateStats(ConstructionAreaBuilding ca) { if (!PropertyManager.IsActive(_Property)) { return; } InternalUpdateFarm(ca); }
public static bool IsActiveFor(ConstructionAreaBuilding building) { if (!PropertyManager.IsActive(_Property)) { return(false); } return(_Current == building); }
private static void InternalUpdateFarm(ConstructionAreaBuilding ca) { _Progress.Value = ca.BuildingPercentage; _Builder.text = ca.BuilderAnts.ToString(); }
public static void Activate(ConstructionAreaBuilding ca) { _Current = ca; InternalUpdateFarm(ca); PropertyManager.MakeActive(_Property); }