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