void Start() { UpdateScoreLabel(); livesController.InitLives(startLives); jumperSpawner = GetComponent <JumperSpawner>(); gameOverSign.SetActive(false); }
private void Start() { UpdateScoreLabel(); gameOverSign.SetActive(false); livesController.InitLives(startLives); //if (Input.GetMouseButtonDown(0)) //{ //StartAfterButtonIsClicked(); //} jumperSpawner = GetComponent <JumperSpawner>(); // can use public to show in inspector. }
//metod sätter liv till spelaren i början av spelet. private void Start() { //PlayerPrefs.SetInt("PlayerCurrentLives", startLives); livesController.InitLives(startLives); // spawnerController = GetComponent<SpawnerController>(); }
private void Start() { UpdateScoreLabel(); livesController.InitLives(startLives); jumperSpawner = GetComponent <JumperSpawner>(); }
void Start() { UpdateScoreLabel(); livesController.InitLives(startLives); float speed = gameObject.GetComponent <JumperSpawner>().randomSpawnDelay; }