Exemple #1
0
    public override void OnInspectorGUI()
    {
        CityGenerator cityGenerator = (CityGenerator)target;

        base.OnInspectorGUI();
        if (GUILayout.Button("Create Cities"))
        {
            cityGenerator.CreateCities();
        }

        if (GUILayout.Button("Remove Cities"))
        {
            cityGenerator.RemoveCities();
        }
    }