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

33 lines
697 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>
// 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);
}
}