private void Start() { TempoStartInformer.GetInstance().RegisterReceiver(this); secondsPerBeat = -1; shouldUpdateText = true; text = GetComponent <TextMeshProUGUI>(); }
private void Start() { man = tempo.GetComponent <TempoManager>(); tapSound = SoundUtils.MakeSource(tapSound, gameObject.AddComponent <AudioSource>()); informer = TempoStartInformer.GetInstance(); textShower = GetComponent <FlyingTextShower>(); }
private new void Start() { BeatInformer.GetInstance().RegisterReceiver(this); TempoStartInformer.GetInstance().RegisterReceiver(this); desiredPosition = new Vector3(); rb = GetComponent <Rigidbody>(); }
public static TempoStartInformer GetInstance() { if (instance == null) { instance = new TempoStartInformer(); } return(instance); }
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); }
void Start() { TempoStartInformer.GetInstance().RegisterReceiver(this); manager = GameObject.Find("Tempo").GetComponent <TempoManager>(); }
private void Start() { tapTempo.SetManager(this); TempoStartInformer.GetInstance().RegisterReceiver(this); }