// Use this for initialization void Start() { DrawingConfig conf = FindObjectOfType <DrawingConfig>(); conf.Reset(); conf.NormalizeRGB(); conf.IsolateMountains(); conf.NormalizeRGB(); conf.IsolateWater(); conf.NormalizeRGB(); conf.isolateHouses(); conf.NormalizeRGB(); conf.findTrees(); mode = Mode.Mesh; Addtrees = false; Addhouses = false; Addtrees = true; Addhouses = true; addMountains = true; addWater = true; GenerateMap(); }
public override void OnInspectorGUI() { DrawingConfig drawCon = (DrawingConfig)target; DrawDefaultInspector(); if (GUILayout.Button("Reset")) { drawCon.Reset(); } if (GUILayout.Button("NomalizeRGB")) { drawCon.NormalizeRGB(); } if (GUILayout.Button("Isolate Water")) { drawCon.IsolateWater(); } if (GUILayout.Button("Isolate Mountains")) { drawCon.IsolateMountains(); } if (GUILayout.Button("Isolate Trees")) { drawCon.findTrees(); } if (GUILayout.Button("Isolate Houses")) { drawCon.isolateHouses(); } }