private void OnDestroy() { if (_beatManager != null) { _beatManager.UnregisterBeatDelegate(BeatRecieved); } }