using System; using BrewMonster.Assets.PerfectWorld.Scripts.UI.GamePlay; using UnityEngine; using UnityEngine.UI; namespace BrewMonster { public class LearnedSkillUI : AUIImagePicture { [Header("LearnedSkillUI")] [SerializeField] Button learnedSkillbutton; [SerializeField] private DoubleTapButton wButton; [SerializeField] private GameObject _focusFrame; public event Action OnClickedSkill; private void Awake() { if(learnedSkillbutton == null) { Debug.LogError("Learned Skill Button is not assigned in LearnedSkillUI"); } learnedSkillbutton.onClick.RemoveAllListeners(); learnedSkillbutton.onClick.AddListener(AddShortCutSkill); //wButton.DoubleTapped += OpenSetShortCutSkillUI; } private void AddShortCutSkill() { OnClickedSkill?.Invoke(this); } private void OpenSetShortCutSkillUI() { } public void SetFocusFrame(bool isFocus) { if (_focusFrame == null) { return; } _focusFrame.SetActive(isFocus); } } /*public struct OpenSetShortCutSkillUIEvent { public OpenSetShortCutSkillUIEvent() { } }*/ }