// Use this for initialization void Start() { songmanager = GameObject.FindGameObjectWithTag("songmanager").GetComponent <songmanager>(); score = GameObject.FindGameObjectWithTag("songmanager").GetComponent <ScoreManager>(); arrayPos = songmanager.nextIndex - 1; xVal = songmanager.notes[arrayPos].xIndex; KeyToPress = keysToPress[xVal]; theSR = GetComponent <SpriteRenderer>(); }
// Use this for initialization void Start() { songmanager = GameObject.FindGameObjectWithTag("songmanager").GetComponent <songmanager>(); combo = 1; combotext.text = combo.ToString() + "x"; if (!songmanager.relax) { multiplier = 1 + (songmanager.approachRate * 0.02f); } else if (songmanager.relax) { multiplier = 0.5f; } }