public void addResearchPoints(double points) { if (isFinished) { Debug.LogError("We can not continue research the research " + getName() + ": It is already finished!"); return; } if (!active) { Debug.LogError("We can not continue research the research " + getName() + ": It is not enabled!"); return; } alreadyResearchedAmount += points; if (alreadyResearchedAmount > researchCost) { isFinished = true; manager.finishResearch(this); } }