Exemple #1
0
 public static void RequestBuilder(ConstructionAreaBuilding ca, int count = 3)
 {
     for (int i = 0; i < count; i++)
     {
         CreateBuilderAnt(ca.transform, null);
     }
 }
Exemple #2
0
    public static void UpdateStats(ConstructionAreaBuilding ca)
    {
        if (!PropertyManager.IsActive(_Property))
        {
            return;
        }

        InternalUpdateFarm(ca);
    }
Exemple #3
0
    public static bool IsActiveFor(ConstructionAreaBuilding building)
    {
        if (!PropertyManager.IsActive(_Property))
        {
            return(false);
        }

        return(_Current == building);
    }
Exemple #4
0
 private static void InternalUpdateFarm(ConstructionAreaBuilding ca)
 {
     _Progress.Value = ca.BuildingPercentage;
     _Builder.text   = ca.BuilderAnts.ToString();
 }
Exemple #5
0
 public static void Activate(ConstructionAreaBuilding ca)
 {
     _Current = ca;
     InternalUpdateFarm(ca);
     PropertyManager.MakeActive(_Property);
 }