using System; using System.Collections.Generic; using MoreMountains.Feedbacks; using UnityEngine; using UnityEngine.UIElements; namespace MoreMountains.FeedbacksForThirdParty { [Serializable] public class UIToolkitDemoAction { public string ButtonName; public MMF_Player TargetPlayer; } public class UIToolkitDemo : MonoBehaviour { public Texture2D FaceTexture; public List Actions; private Button _button; private void OnEnable() { VisualElement root = GetComponent().rootVisualElement; VisualElement face = root.Q("DemoFace"); face.style.backgroundImage = FaceTexture; foreach (UIToolkitDemoAction action in Actions) { _button = root.Q