Exemplo n.º 1
0
 void Start()
 {
     text.text = "Highscore: " + PlayerPrefs.GetInt("Highscore", 0).ToString();
     point     = GameObject.Find("Player").GetComponent <Points>();
     sound     = GameObject.Find("SoundLily").GetComponent <SoundScripts>();
     first     = true;
 }
Exemplo n.º 2
0
 private void Start()
 {
     shapeCh   = gameObject.GetComponent <ShapeChanger>();
     gameOver  = gameObject.GetComponent <GameOver>();
     points    = gameObject.GetComponent <Points>();
     sound     = GameObject.Find("SoundLily").GetComponent <SoundScripts>();
     move      = GameObject.Find("Player").GetComponent <Movement>();
     playMusic = true;
 }
Exemplo n.º 3
0
    void Start()
    {
        gameOver  = gameObject.GetComponentInChildren <GameOver>();
        spawnWall = gameObject.GetComponentInChildren <SpawnWall>();
        points    = gameObject.GetComponentInChildren <Points>();
        bpmScript = GameObject.Find("BPM").GetComponent <BPMScript>();
        move      = gameObject.GetComponentInChildren <Movement>();
        sound     = gameObject.GetComponentInChildren <SoundScripts>();

        partSys = GameObject.Find("ParticleSystems");
        partSys.gameObject.SetActive(false);

        bpmScript.bpm       = 70f;
        spawnWall.spawnDist = 150f;
    }
Exemplo n.º 4
0
 private void Start()
 {
     sound = GameObject.Find("SoundLily").GetComponent <SoundScripts>();
 }
Exemplo n.º 5
0
 void Start()
 {
     shape    = GameObject.Find("Player").GetComponent <ShapeChanger>();
     gameOver = GameObject.Find("Player").GetComponent <GameOver>();
     sound    = GameObject.Find("SoundLily").GetComponent <SoundScripts>();
 }