public void Build() { if (!isBuildCheckPassed.value) { return; } OnBuild?.Invoke((buildingList.GetSelected() as BuildingTypeData).Type); Close(); }