示例#1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        NavGrid navGrid = target as NavGrid;
        if (GUILayout.Button("Bake NavGrid"))
        {
            navGrid.Bake();
        }
    }