Ejemplo n.º 1
0
        void Awake()
        {
            _instance      = this;
            secondsPerBeat = track.bpm / 60f;
            beatsPerSecond = 60f / track.bpm;
            waitAndStop    = new WaitForSeconds(beatsPerSecond * 2);

            _trackView = FindObjectOfType <TrackView>();
            if (!_trackView)
            {
                Debug.LogWarning("No TrackView found in current scene");
            }
        }
Ejemplo n.º 2
0
        private void Awake()
        {
            _instance      = this;
            beatsPerSecond = track.bpm / 60f;
            secondsPerBeat = 60f / track.bpm;
            waitAndStop    = new WaitForSeconds(secondsPerBeat * 2);

            trackView = FindObjectOfType <TrackView>();

            if (!trackView)
            {
                Debug.LogError("No TrackView found in scene.");
            }
        }