private void SetRequiredTime() { float requiredTime = Requirements.GetTime(SceneManager.GetActiveScene().buildIndex - 1); string requiredTimeString = TimeTrialManager.FormatTime(requiredTime); _timeTrialRequiredTime.text = "Czas wymagany: " + requiredTimeString; }
public void SetRequiredTime() { float requiredTime = Requirements.GetTime(SceneManager.GetActiveScene().buildIndex - 1); string requiredTimeString = TimeTrialManager.FormatTime(requiredTime); _endScreenTimeRequirement.GetComponent <Text>().text = "Czas wymagany: " + requiredTimeString; }
public bool EvaluateResult() { int currentLevel = SceneManager.GetActiveScene().buildIndex - 1; if (_playerTime <= Requirements.GetTime(currentLevel)) { return(true); } else { return(false); } }