public void Snooze(Vector3 position) { if (_snoozeHandel != null && !_snoozeHandel.IsDone) { return; } PlaySnoozeSound(); PopupText.Create(position); _ui.ToggleAlarmHint(false); _snoozeBar.transform.parent.parent.gameObject.SetActive(true); _snoozeHandel = new TickEvent( TickUtils.SecToTicks(_snoozeSecs), tick => { _snoozeBar.transform.parent.parent.gameObject.SetActive(false); if (_playerInRange) { _ui.ToggleAlarmHint(true); } }, tick => _snoozeBar.size = (float)tick / (float)_snoozeSecs); }