_xiaofang/xiaofang/Assets/Script/UI/PanelUI/DatePanel.cs

35 lines
824 B
C#
Raw Normal View History

2024-11-29 09:47:47 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class DatePanel : MonoBehaviour
{
[Header("<22><><EFBFBD><EFBFBD>")]
public Button calendarBtn; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ť
public GameObject calendarPanel; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
2024-11-30 15:11:53 +08:00
public Text SchoolText; //<2F>¹<EFBFBD>У<EFBFBD><D0A3><EFBFBD>ı<EFBFBD>
public Text PlaceText; //<2F>¹ʵص<CAB5><D8B5>ı<EFBFBD>
public Text NumberText; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD>
2024-11-29 09:47:47 +08:00
// Start is called before the first frame update
void Start()
{
// ȷ<><C8B7><EFBFBD><EFBFBD>ʼʱ<CABC><CAB1><EFBFBD><EFBFBD><EFBFBD>ǹرյ<D8B1>
calendarPanel.SetActive(false);
}
// Update is called once per frame
void Update()
{
}
// <20>л<EFBFBD><D0BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ/<2F><><EFBFBD><EFBFBD>
public void ClickCalendarBtn()
{
// <20>л<EFBFBD><D0BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>״̬
bool isActive = calendarPanel.activeSelf;
calendarPanel.SetActive(!isActive);
}
}