// Use this for initialization void Start() { explosion = GetComponent <ParticleSystem>(); sphereCollider = GetComponent <SphereCollider>(); sphereRender = GetComponent <MeshRenderer>(); scoreboard = GameObject.Find("Scoreboard"); score = scoreboard.GetComponent <Keep_Score>(); }
void Start() { GameObject levelControllerObject = GameObject.FindWithTag("LevelController"); if (levelControllerObject != null) { keep_score = levelControllerObject.GetComponent <Keep_Score> (); } deathAudioSource = GameObject.FindGameObjectWithTag("DeathSoundSource").GetComponent <AudioSource> (); }