/// <summary> /// helper function that calls bmc.SetTileMode() with the correct paramter /// </summary> /// <param name="button">button calling the function</param> void CallTileFunction(GameObject button) { if (button.name == "Bulldoze") { bmc.SetTileMode("Empty"); } else { bmc.SetTileMode(button.name.Remove(0, 5)); } }