public void OnInputClicked(InputClickedEventData eventData) { if (enabled) { confirmer.Confirm(); } }
// Update is called once per frame void Update() { if (enterTime != 0) { if (enterTime + dwellTime < Time.time) { confirmer.Confirm(); enterTime = 0; } } }