WXMC/.svn/pristine/c0/c028a9188d5a752c3ce0d48c141a34d292a68629.svn-base
2024-12-04 16:18:46 +08:00

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();
}
}