Ejemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        PathfindingGrid myScript = (PathfindingGrid)target;

        if (GUILayout.Button("CREATE GRID"))
        {
            myScript.CreateGrid();
        }
        if (GUILayout.Button("DESTROY GRID"))
        {
            myScript.DestroyGrid();
        }
        if (GUILayout.Button("SHOW/HIDE GRID"))
        {
            myScript.ShowHideGrid();
        }
    }