예제 #1
0
 private void Start()
 {
     man        = tempo.GetComponent <TempoManager>();
     tapSound   = SoundUtils.MakeSource(tapSound, gameObject.AddComponent <AudioSource>());
     informer   = TempoStartInformer.GetInstance();
     textShower = GetComponent <FlyingTextShower>();
 }
예제 #2
0
 private void Start()
 {
     TempoStartInformer.GetInstance().RegisterReceiver(this);
     secondsPerBeat   = -1;
     shouldUpdateText = true;
     text             = GetComponent <TextMeshProUGUI>();
 }
예제 #3
0
 private new void Start()
 {
     BeatInformer.GetInstance().RegisterReceiver(this);
     TempoStartInformer.GetInstance().RegisterReceiver(this);
     desiredPosition = new Vector3();
     rb = GetComponent <Rigidbody>();
 }
예제 #4
0
 public void ReceiveTempoInMiliseconds(double interval)
 {
     tempoFound = true;
     tempo.SetTempo(interval);
     tempo.SetLatencyMilliseconds(50);
     tempo.StartTempo();
     Debug.Log("BPM: " + TempoUtils.FlipBpmInterval(interval));
     TempoStartInformer.GetInstance().ReceiveTempo(interval);
 }
예제 #5
0
 void Start()
 {
     TempoStartInformer.GetInstance().RegisterReceiver(this);
     manager = GameObject.Find("Tempo").GetComponent <TempoManager>();
 }
예제 #6
0
 private void Start()
 {
     tapTempo.SetManager(this);
     TempoStartInformer.GetInstance().RegisterReceiver(this);
 }