using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UIElements; /* 这个controller 是用于控制 Status UI菜单的 * 包含显示狗的最新状态 * 添加狗,把狗送给朋友,删除狗 */ public class StatusController : MonoBehaviour { private Button backButton; private Label nameLabel, genderLabel, breedLabel, hostLabel, hostnameLabel, ageLabel, ageValueLabel, statusLabel, statusValueLabel; private Label leftArrow, rightArrow; private Label addLabel, transfer, remove, callback; DogProperty puppy; private VisualElement selectElement; // Start is called before the first frame update void OnEnable() { var root = GetComponent().rootVisualElement; backButton = root.Q