private void OnGazeEnter(GazeInput gazeInput) { if (useGazeInputTimerImage && !fillImage) { fillImage = gazeInput.TimerImage; fillImage.sprite = fillSprite; fillImage.fillAmount = 0; } DOTween.Kill(fillImage); startTime = Time.time; if (fillImage.fillAmount > 0) // allow refill { startTime -= fillImage.fillAmount * duration; } }
internal void GazeEnter(GazeInput gazeInput) { OnGazeEnter?.Invoke(gazeInput); }