Exemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        RoadNetwork roadNetwork = (RoadNetwork)target;

        if (DrawDefaultInspector())
        {
            if (roadNetwork.autoUpdate)
            {
                // Method for generating the roads
            }
        }

        if (GUILayout.Button("Generate"))
        {
            roadNetwork.GenerateRoadNetwork(roadNetwork.seed, roadNetwork._iter, roadNetwork.length, roadNetwork._interval);
        }
    }