void Start() { text.text = "Highscore: " + PlayerPrefs.GetInt("Highscore", 0).ToString(); point = GameObject.Find("Player").GetComponent <Points>(); sound = GameObject.Find("SoundLily").GetComponent <SoundScripts>(); first = true; }
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; }
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; }
private void Start() { sound = GameObject.Find("SoundLily").GetComponent <SoundScripts>(); }
void Start() { shape = GameObject.Find("Player").GetComponent <ShapeChanger>(); gameOver = GameObject.Find("Player").GetComponent <GameOver>(); sound = GameObject.Find("SoundLily").GetComponent <SoundScripts>(); }