Cute_demon_attacks/meng_yao/Assets/script/A_Fight/failurePanel.cs

34 lines
804 B
C#
Raw Normal View History

2024-12-26 22:57:21 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class failurePanel : MonoBehaviour
{
[Header("<22>رյ<D8B1><D5B5><EFBFBD><EFBFBD><EFBFBD>")] public GameObject panel;
[Header("closeBTN")] public Button close;
2024-12-27 18:13:52 +08:00
[Header("<22>˺<EFBFBD>ͳ<EFBFBD><CDB3>")] public GameObject shanghai;
[Header("<22>ű<EFBFBD>")] public shanghai shanghaiJiaobeng;
2024-12-26 22:57:21 +08:00
// Start is called before the first frame update
2024-12-27 23:41:04 +08:00
private void Awake()
{
//shanghaiJiaobeng = shanghai.GetComponent<shanghai>();
}
2024-12-26 22:57:21 +08:00
void Start()
{
2024-12-27 23:41:04 +08:00
2024-12-27 18:13:52 +08:00
2024-12-26 22:57:21 +08:00
close.onClick.AddListener(() =>
{
Destroy(panel.gameObject);
});
}
2024-12-27 18:13:52 +08:00
public void SetShangHaiItem(Sprite _sprite, string shanghai, string number)
2024-12-26 22:57:21 +08:00
{
2024-12-27 18:13:52 +08:00
shanghaiJiaobeng.initInfo(_sprite, shanghai, number);
2024-12-26 22:57:21 +08:00
}
}