mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-23 22:27:58 +01:00
32 lines
697 B
C#
32 lines
697 B
C#
using UnityEngine;
|
|
|
|
namespace Fie.UI
|
|
{
|
|
public class FieLobbySelectableUICharacterSelectButton : MonoBehaviour
|
|
{
|
|
public delegate void ButtonCallback(FieLobbySelectableUICharacterSelectButton buttonEntity);
|
|
|
|
[SerializeField]
|
|
public FieGameCharacter relatedCharacter;
|
|
|
|
[SerializeField]
|
|
private FieConstValues.FieGameCharacter _gameCharacterType;
|
|
|
|
[SerializeField]
|
|
private Sprite _relatedSprite;
|
|
|
|
public FieConstValues.FieGameCharacter gameCharacterType => _gameCharacterType;
|
|
|
|
public Sprite relatedSprite => _relatedSprite;
|
|
|
|
public event ButtonCallback clickedEvent;
|
|
|
|
public void Clicked()
|
|
{
|
|
if (this.clickedEvent != null)
|
|
{
|
|
this.clickedEvent(this);
|
|
}
|
|
}
|
|
}
|
|
}
|