_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/Address/addressItem.cs
2024-11-27 19:02:29 +08:00

33 lines
682 B
C#

using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class addressItem : MonoBehaviour
{
public TextMeshProUGUI nameTxt;//Ãû³Æ
public TextMeshProUGUI addressTxt;//µØÖ·
public TextMeshProUGUI telTxt;//µç»°
public Button editBtn;//±à¼­°´Å¥
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void SetInfo(Address address)
{
nameTxt.text = address.receiveName;
addressTxt.text = address.address;
telTxt.text = address.receivePhone;
}
}