兑换UI界面的制作跟接口脚本的预留
This commit is contained in:
parent
cef08d3c9a
commit
fc503fa32c
File diff suppressed because it is too large
Load Diff
36
TheStrongestSnail/Assets/Scripts/lianghaoLL/ExchangePanel.cs
Normal file
36
TheStrongestSnail/Assets/Scripts/lianghaoLL/ExchangePanel.cs
Normal file
@ -0,0 +1,36 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using TMPro;
|
||||
using UnityEngine.UI;
|
||||
public class ExchangePanel : MonoBehaviour
|
||||
{
|
||||
public TMP_InputField exchangeInput;
|
||||
public Button CancelBtn;
|
||||
public Button ConfirmBtn;
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
ConfirmBtn.onClick.AddListener(ConfrimPanel);
|
||||
CancelBtn.onClick.AddListener(CancelPanel);
|
||||
}
|
||||
|
||||
|
||||
void CancelPanel()
|
||||
{
|
||||
Destroy(this.gameObject);
|
||||
}
|
||||
|
||||
|
||||
async void ConfrimPanel()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 219dc8e3c58f153489f189f611caa529
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user