示例#1
0
 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);
 }
示例#2
0
 protected override void Start()
 {
     base.Start();
     musicManager = MusicManager.instance;
     musicManager.AddNewResponder(this, 1.0f);
 }
示例#3
0
 public override void Start()
 {
     base.Start();
     musicManager = MusicManager.instance;
     musicManager.AddNewResponder(this, beatInterval);
 }
示例#4
0
 void Start()
 {
     musicManager = MusicManager.instance;
     musicManager.AddNewResponder(this, 1.0f);
 }