コード例 #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        CreateMap createMap = (CreateMap)target;

        if (GUILayout.Button("Restart"))
        {
            createMap.RecreateMap();
        }
        if (GUILayout.Button("Save"))
        {
            createMap.SaveMap();
        }
    }