private void OnHealthChanged(int healthValue) { if (healthValue < _player.MaxHealth) { _missionTracker.OnPlayerReceivedDamage(true); } }
private void UntouchableTimerTracking() { _currentTime += Time.deltaTime; _timer.text = Mathf.RoundToInt(_currentTime).ToString(); if (_currentTime >= _missionTracker.UntouchableTimeToHoldOut) { _missionTracker.OnPlayerReceivedDamage(false); } }