using System;
using System.Collections;
using System.Globalization;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using UI.Tables;
namespace UI.Dates
{
///
/// A special button which responds when held down
/// Note: These are intended to supplement the existing Next/Previous buttons,
/// and as such, they require that the existing buttons already have an event handler defined
/// (which this component will then extract and replace at runtime)
///
public class DatePicker_HoldButton : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
{
public Button Button;
public float Delay = 0.5f;
private bool pointerDown = false;
private Action action;
private float lastInvokeTime = 0;
private int executionCount = 0;
void Start()
{
Button = this.GetComponent