using System; using System.Linq; using System.Text; using UnityEngine; using UnityEngine.UIElements; using VOID.ScriptableObjects.Player; namespace VOID.UserInterface.Game.LevelUp { public class LevelUpOptionUI : MonoBehaviour { public event Action OnSelect; public static LevelUpOptionUI InitNew(GameObject gameObject, VisualElement parentWrapperElement, LevelUpOption option) { // New instance to manage this option var instance = gameObject.AddComponent(); // Get all needed visual elements var templateElement = GameUI.current.levelUpOptionTemplate.CloneTree().contentContainer; templateElement.Q