コード例 #1
0
 void BuyCityButton()
 {
     GUI.enabled = Earth.GlobalCurrency > 100;
     GUILayout.BeginVertical();
     if (GUILayout.Button("Buy City", ButtonStyle, GUILayout.Height(75)))
     {
         isPickingLocation  = true;
         placementLabelRect = GetTopLabelRect("Right Click to Place Residential Sector");
         earth.BuildNewCity();
         Earth.SpendGlobalCurrency(100);
     }
     GUILayout.Label("Cost: $100M", Header2Style);
     GUILayout.Label("Population Capacity: 100Million", BodyStyle);
     GUILayout.EndVertical();
 }