35 lines
1.0 KiB
C#
35 lines
1.0 KiB
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
using TMPro;
|
|||
|
using UnityEngine.UI;
|
|||
|
public class NumberTc : MonoBehaviour
|
|||
|
{
|
|||
|
public TextMeshProUGUI BeautifulNumber;
|
|||
|
public TextMeshProUGUI price;
|
|||
|
public Button Show_buy;
|
|||
|
public Canvas jiemianCanvas;
|
|||
|
// Start is called before the first frame update
|
|||
|
void Start()
|
|||
|
{
|
|||
|
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>";
|
|||
|
Button CancelBtn = Buy_tc.transform.Find("Panel/t3/quxiaoBtn").GetComponent<Button>();
|
|||
|
Button ConfirmBtn = Buy_tc.transform.Find("Panel/t3/QuerenBtn").GetComponent<Button>();
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
// Update is called once per frame
|
|||
|
void Update()
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
}
|