Пример #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();
        RoadGenerator rg = (RoadGenerator)target;

        if (GUILayout.Button("BuildRoad"))
        {
            rg.buildRoad();
        }
    }