Files
test/Assets/PerfectWorld/Scripts/UI/GamePlay/LearnedSkillUI.cs
T
2026-04-08 17:35:01 +07:00

43 lines
1.1 KiB
C#

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;
public event Action<AUIImagePicture> 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);
Debug.LogError("clicked");
}
private void OpenSetShortCutSkillUI()
{
}
}
/*public struct OpenSetShortCutSkillUIEvent
{
public OpenSetShortCutSkillUIEvent()
{
}
}*/
}