38 lines
770 B
C#
38 lines
770 B
C#
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
[CreateAssetMenu(fileName = "Building Preset", menuName = "New Building Preset")]
|
|
public class BuildingPreset : ScriptableObject
|
|
{
|
|
public int cost;
|
|
public int costPerTurn;
|
|
public GameObject prefab;
|
|
public int population;
|
|
public int jobs;
|
|
public int food;
|
|
public int water;
|
|
public int steel;
|
|
public int faith;
|
|
public int wood;
|
|
|
|
public enum BuildingType
|
|
{
|
|
Residential,
|
|
Commercial,
|
|
Industrial,
|
|
Park,
|
|
School,
|
|
Hospital,
|
|
PoliceStation,
|
|
FireStation,
|
|
Church,
|
|
Road,
|
|
PowerPlant,
|
|
WaterPlant,
|
|
Factory,
|
|
Farm,
|
|
Mine,
|
|
Sawmill
|
|
}
|
|
public BuildingType buildingType;
|
|
} |