Example #1
0
 void BuyLaserTurretButton()
 {
     GUI.enabled = Earth.GlobalCurrency > 75;
     GUILayout.BeginVertical();
     if (GUILayout.Button("Buy Laser Turret", ButtonStyle, GUILayout.Height(75)))
     {
         isPickingLocation  = true;
         placementLabelRect = GetTopLabelRect("Right Click to Place Laser Turret");
         earth.BuildNewLaserWeapon();
     }
     GUILayout.Label("Cost: $200M", Header2Style);
     GUILayout.Label("Shoots a laser beam \nRecharge time of 3 seconds\n No additional costs", BodyStyle);
     GUILayout.Label("", BodyStyle);
     GUILayout.EndVertical();
 }
Example #2
0
 public void BuyLaserTurret()
 {
     isPickingLocation = true;
     earth.BuildNewLaserWeapon();
 }