54 lines
1.0 KiB
Plaintext
54 lines
1.0 KiB
Plaintext
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
using UnityEngine.UI;
|
|
|
|
public class UnTalkChoseButton : MonoBehaviour
|
|
{
|
|
public UnityEvent OnChosen;
|
|
|
|
public Image m_image;
|
|
|
|
public Sprite m_spriteLottery;
|
|
|
|
public int ButtonIndex;
|
|
|
|
public void SetNodeItem(PHomePush.NodeChoseItem nodeItem)
|
|
{
|
|
m_image.sprite = nodeItem.DesImage;
|
|
m_image.SetNativeSize();
|
|
}
|
|
|
|
//public void SetBuff(PHomeBuff buff)
|
|
//{
|
|
// m_image.sprite = buff.DesImage;
|
|
//}
|
|
|
|
//public void SetWeapon(PHomeWeapon weapon)
|
|
//{
|
|
// m_image.sprite = weapon.DesImage;
|
|
//}
|
|
|
|
//public void SetPet(PHomePet pet)
|
|
//{
|
|
// m_image.sprite = pet.DesImage;
|
|
//}
|
|
|
|
|
|
//public void SetLottery(PHomeLottery lottery)
|
|
//{
|
|
// m_image.sprite = lottery.DesImage;
|
|
//}
|
|
|
|
//public void SetDialogue(PHomeMysteriousDialogue dialogue)
|
|
//{
|
|
// m_image.sprite = dialogue.DesImage;
|
|
//}
|
|
|
|
public void ChoseThis()
|
|
{
|
|
OnChosen.Invoke();
|
|
}
|
|
}
|