// Called with Invoke() in Start() // ReSharper disable once UnusedMember.Local private void delayedSongStart() { source.Play(); songStarted = true; SongTimer.sourceToSampleTimeFrom = source; SongTimer.StartSong(128f, DelayForBeats); _rhythmStartTime = source.time; }
// Use this for initialization void Start() { if (DEBUG_StartSongTimer) { SongTimer.StartSong(DEBUG_BPM); } if (DEBUG_InitControllerOnStart) { _initializeController(); } }
// Use this for initialization void Start() { Debug.LogWarning("[CanvasHandler] Needs to pass the songs bpm the timer, not a hardcoded float."); SongTimer.StartSong(128f); }