// Use this for initialization void Start() { detector = GameObject.Find("BeatDetector").GetComponent<BeatDetector>(); detector.Initialize(audio.clip); detector.SynchAndPlay(audio); }
// Use this for initialization void Start() { detector = GameObject.Find("BeatDetector").GetComponent <BeatDetector>(); detector.Initialize(audio.clip); detector.SynchAndPlay(audio); }
// Use this for initialization void Start() { _playedAudio = GameObject.Find("TrackPlayer").GetComponent <AudioSource>(); _beatDetector = GetComponent <BeatDetector>(); _beatDetector.Initialize(_playedAudio.clip); _beatDetector.SynchAndPlay(GameObject.Find("TrackPlayer").audio); }
// Use this for initialization void Start() { _playedAudio = GameObject.Find("TrackPlayer").GetComponent<AudioSource>(); _beatDetector = GetComponent<BeatDetector>(); _beatDetector.Initialize( _playedAudio.clip ); _beatDetector.SynchAndPlay(GameObject.Find("TrackPlayer").audio); }