private void ReloadGravityChange() { if (!_canChangeGraity && !_isGameOver) { _changeReminder -= Time.deltaTime; if (_changeReminder <= 0) { _canChangeGraity = true; SetReminder(); } else { OnReminderChange?.Invoke(1f - (_changeReminder / GravityChangeRate)); } } }
private void SetReminder() { _changeReminder = GravityChangeRate; OnReminderChange?.Invoke(1f - (_changeReminder / GravityChangeRate)); }