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

        GridCreator gridScirpt = (GridCreator)target;

        if (GUILayout.Button("Generate Grid"))
        {
            gridScirpt.GenerateGrid();
        }

        if (GUILayout.Button("Update Prefabs"))
        {
            gridScirpt.ChangePrefabProperties();
        }
    }