Пример #1
0
    // yes got pressed, delete the level
    public void DeleteYes()
    {
        animator.ResetTrigger("deleteYes");
        animator.SetTrigger("deleteYes");
        animator.SetTrigger("fadeOut");
        SoundManager.ButtonClicked();

        DestroyImmediate(editElement.gameObject);
        LevelLoader.DeleteCustomLevel(editData);
        LevelManager.customLevels = LevelLoader.LoadCustomLevels();
        UIEditorSelection._instance.LoadUIEditorLevels();
        //UIScrollFade.scrollElements.Remove(editElement);
        //UIScrollFade._instance.UpdateScrollElements();
        UIScrollRectContentResizer.onContentChange.Invoke();
        StartCoroutine(cDelayedEditorLevelsShow());
    }