update logic select last role

This commit is contained in:
NguyenVanDat
2026-05-26 10:39:47 +07:00
parent fa322512db
commit df3f4c2839
4 changed files with 41 additions and 12 deletions
+7 -2
View File
@@ -19,7 +19,8 @@ public class CharacterItemUI : MonoBehaviour
private void OnEnable()
{
_goFocusImage.SetActive(false);
if(_goFocusImage!=null)
_goFocusImage.SetActive(false);
}
// Start is called once before the first execution of Update after the MonoBehaviour is created
@@ -53,7 +54,11 @@ public class CharacterItemUI : MonoBehaviour
}
}
public void OnClickBtn()
private void OnClickBtn()
{
onClick?.Invoke(this);
}
public void ForceClickBtn()
{
onClick?.Invoke(this);
}