public void SetTrainingTime(double time) { TrainingTime = time; IsTrainingDone = false; trainingCounter.Start(TrainingTime); }
public void SetUpgradeTime(double time) { UpgradeTime = time; IsUpgradeDone = false; upgCounter.Start(UpgradeTime); }
public void SetResearchTime(double time) { ResearchTime = time; IsResearchDone = false; researchCounter.Start(ResearchTime); }
public void Initalize() { researchCounter = new AsyncCounter(); IsResearchDone = !(ResearchTime > 0); if (!IsResearchDone) { researchCounter.Start(ResearchTime); } upgCounter = new AsyncCounter(); IsUpgradeDone = !(UpgradeTime > 0); if (!IsUpgradeDone) { upgCounter.Start(UpgradeTime); } trainingCounter = new AsyncCounter(); IsTrainingDone = !(TrainingTime > 0); if (!IsTrainingDone) { trainingCounter.Start(TrainingTime); } }