// Start is called before the first frame update void Start() { // cache lifeDisplay = FindObjectOfType <PlayerLifeDisplay>(); CurrentHealth = startingHealth; lifeDisplay.UpdateDisplay(); }
void Start() { playerStartingLifes = Mathf.Round(playerStartingLivesBase * difficultyMultipliers[(int)PlayerPrefsController.GetDifficulty()]); gameOverScreen.SetActive(false); victoryScreen.SetActive(false); FindObjectOfType <GameTimer>().LevelDuration = gameDuration; sceneLoader = FindObjectOfType <SceneLoader>(); playerLifeDisplay = FindObjectOfType <PlayerLifeDisplay>(); Debug.Log("difficulty setting is currently " + PlayerPrefsController.GetDifficulty()); Debug.Log("difficulty multiplier is currently " + difficultyMultipliers[(int)PlayerPrefsController.GetDifficulty()]); }