// Use this for initialization void Start() { _originalScale = gameObject.transform.localScale; // change this to read from file _ba = GameObject.FindGameObjectWithTag("Boss").GetComponent <BpmAnalyzer>(); }