void Start()
 {
     UpdateScoreLabel();
     livesController.InitLives(startLives);
     jumperSpawner = GetComponent <JumperSpawner>();
     gameOverSign.SetActive(false);
 }
示例#2
0
    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>();
 }
示例#5
0
 void Start()
 {
     UpdateScoreLabel();
     livesController.InitLives(startLives);
     float speed = gameObject.GetComponent <JumperSpawner>().randomSpawnDelay;
 }