// Update is called once per frame private void Update() { if (currenAchievement != null) { if (!currenAchievement.IsCompleted()) { currenAchievement.GetCompletionPercent(); statsManager.UpdateStatValue(achievementTimeStatName, Time.deltaTime); } } }