private void Awake() { _rigidBody = GetComponent <Rigidbody2D>(); if (_beatManager != null) { _beatManager.RegisterBeatDelegate(BeatRecieved); } }
private void Awake() { _beatManager.RegisterBeatDelegate(BeatRecieved); for (int i = 0; i < _beats.Length; i++) { _beats[i].GetComponent <Image>().color = _beatManager._accentBeats[i] ? Color.white : new Color(.85f, .85f, .85f, 1); } }