コード例 #1
0
    public override void OnInspectorGUI()
    {
        DungeonCreator thisCreator = (DungeonCreator)target;

        if (GUILayout.Button("Generate Dungeon"))
        {
            thisCreator.GenerateDungeon();
        }
        if (GUILayout.Button("Remove Dungeon"))
        {
            thisCreator.ClearDungeon();
        }
        base.OnInspectorGUI();
    }