private void Awake() { if (instance == null) { instance = this; } }
private void Awake() { if (rhytmEvent == null) { rhytmEvent = RhytmEvent.instance; } rhytmEvent.ONFrequancyChange += OnFrequancyChange; }
void Awake() { if (rhytmEvent == null) { rhytmEvent = RhytmEvent.instance; } if (audioSource == null) { audioSource = GetComponent <AudioSource>(); } }