void BuyMissileSiloButton() { GUI.enabled = Earth.GlobalCurrency > 100; GUILayout.BeginVertical(); if (GUILayout.Button("Buy Missile Silo", ButtonStyle, GUILayout.Height(75))) { isPickingLocation = true; placementLabelRect = GetTopLabelRect("Right Click to Place Missile Silo"); earth.BuildNewMissileSilo(); Earth.SpendGlobalCurrency(100); } GUILayout.Label("Cost: $100M", Header2Style); GUILayout.Label("Shoots a powerful missile \nRecharge time of 3 seconds \nMissiles cost $1Million each", BodyStyle); GUILayout.Label("", BodyStyle); GUILayout.EndVertical(); }
public void BuyMissileSiloButton() { isPickingLocation = true; earth.BuildNewMissileSilo(); }