public void buildWall() { if (active.building == null && player.Money >= wall.GetComponent <Wall>().costs) { active.buildWall(); player.Money -= wall.GetComponent <Wall>().costs; } Cancel(); }