MainScript.CheckIfAreEnoughResourcesToBuild C# (CSharp) Method