33 lines
697 B
C#
33 lines
697 B
C#
|
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);
|
|||
|
}
|
|||
|
}
|