public BeatModule(float beatInterval, float partialThreshold, float perfectThreshold, int skipBeats = 0) { this.beatInterval = beatInterval; this.partialThreshold = partialThreshold; this.perfectThreshold = perfectThreshold; musicManager = MusicManager.instance; musicManager.AddNewResponder(this, beatInterval); }
protected override void Start() { base.Start(); musicManager = MusicManager.instance; musicManager.AddNewResponder(this, 1.0f); }
public override void Start() { base.Start(); musicManager = MusicManager.instance; musicManager.AddNewResponder(this, beatInterval); }
void Start() { musicManager = MusicManager.instance; musicManager.AddNewResponder(this, 1.0f); }