NewN_UAVPlane/Assets/Temp/Scripts/Calendarbtn.cs

29 lines
544 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Calendarbtn : MonoBehaviour
{
public Button calendar_btn;
public RectTransform calendar_panl;
public bool isp=true;
void Start()
{
calendar_btn.onClick.AddListener(() =>
{
if (isp==true)
{
calendar_panl.gameObject.SetActive(true);
}
});
}
// Update is called once per frame
void Update()
{
}
}