Exemple #1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        if (GUILayout.Button("Execute Task: Build Map"))
        {
            levelBuilder = (LevelBuilder)target;
            levelBuilder.MainTask();
        }

        if (GUILayout.Button("Execute Task: Clean Cached Objects"))
        {
            levelBuilder = (LevelBuilder)target;
            levelBuilder.CleanCachedItems();
        }
    }