2024-11-25 22:20:23 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using TMPro;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
public class NumberTc : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public TextMeshProUGUI BeautifulNumber;
|
|
|
|
|
public TextMeshProUGUI price;
|
2024-11-26 21:16:12 +08:00
|
|
|
|
public int id;
|
2024-11-25 22:20:23 +08:00
|
|
|
|
public Button Show_buy;
|
|
|
|
|
public Canvas jiemianCanvas;
|
2024-11-25 22:58:30 +08:00
|
|
|
|
public GameObject musk;
|
2024-11-25 22:20:23 +08:00
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
void Start()
|
|
|
|
|
{
|
2024-11-26 21:16:12 +08:00
|
|
|
|
jiemianCanvas = GameObject.Find("lianghaoCanvas").GetComponent<Canvas>();
|
2024-11-25 22:20:23 +08:00
|
|
|
|
Show_buy.onClick.AddListener(ShowBuy_TanChuang);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ShowBuy_TanChuang()
|
|
|
|
|
{
|
|
|
|
|
GameObject Buy_tc = (GameObject)Instantiate(Resources.Load("LLPrefabs/Nice_numberTcPanel"),jiemianCanvas.transform);
|
|
|
|
|
Text hfText = Buy_tc.transform.Find("Panel/t3/huafeitext").GetComponent<Text>();
|
|
|
|
|
hfText.text = "<22>Ƿ<EFBFBD>ȷ<EFBFBD>ϻ<EFBFBD><CFBB><EFBFBD>" + price.text + "<22><><EFBFBD>Ͽǹ<CFBF><C7B9><EFBFBD>IDΪ" + BeautifulNumber.text + "<22><><EFBFBD><EFBFBD><EFBFBD>ţ<EFBFBD>";
|
2024-11-25 23:35:20 +08:00
|
|
|
|
Buy_tc.GetComponent<Nice_numPanel>().numberTc = this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void musk_show()
|
|
|
|
|
{
|
|
|
|
|
musk.gameObject.SetActive(true);
|
2024-11-26 00:41:57 +08:00
|
|
|
|
Show_buy.interactable = false;
|
2024-11-25 22:20:23 +08:00
|
|
|
|
}
|
|
|
|
|
// Update is called once per frame
|
|
|
|
|
void Update()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|