using System; using UnityEngine; using UnityEngine.UIElements; using VOID.Generic.SaveLoad; namespace VOID.UserInterface.MainMenu { public class ProfileUI : MonoBehaviour { public static ProfileUI InitNew( GameObject gameObject, VisualElement parentWrapperElement, PlayerProfile profile, Action onSelect, Action onDelete ) { // New instance to manage this option var instance = gameObject.AddComponent(); // Get all needed visual elements var templateElement = GameUI.current.profileTemplate.CloneTree().contentContainer; templateElement.Q