37 lines
878 B
C#
37 lines
878 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class NewAddressPanel : MonoBehaviour
|
|
{
|
|
public Button submitBtn;//±£´æ°´Å¥
|
|
public TMP_InputField nameInput;
|
|
public TMP_InputField telInput;
|
|
public TMP_InputField addresInput;
|
|
public TMP_InputField detailInput;
|
|
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
submitBtn.onClick.AddListener(NewAddress);
|
|
}
|
|
|
|
//
|
|
public async void NewAddress()
|
|
{
|
|
newAddress81 newAddress81 = new newAddress81();
|
|
newAddressResponse newAddressResponse = new newAddressResponse();
|
|
newAddressResponse = await newAddress81.newAddress(nameInput.text,telInput.text,addresInput.text,detailInput.text);
|
|
}
|
|
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|