Пример #1
0
        void PlayBeat(int input)
        {
            _played = true;

            if (_track.beats[current] == -1)
            {
//				Debug.Log (string.Format("{0} played untimely", input));
            }
            else if (_track.beats[current] == input)
            {
//				Debug.Log (string.Format("{0} played right", input));
                _trackView.TriggerBeatView(current, TrackView.Trigger.Right);
            }
            else
            {
//				Debug.Log (string.Format("{0} played, {1} expected", input, _track.beats[current]));
                _trackView.TriggerBeatView(current, TrackView.Trigger.Wrong);
            }
        }
Пример #2
0
        void PlayBeat(int input)
        {
            played = true;

            if (track.beats[current] == -1)
            {
                //Debug.Log(string.Format("{0} played untimely", input));
            }
            else if (track.beats[current] == input)
            {
                //Debug.Log(string.Format("{0} correctly", input));
                trackView.TriggerBeatView(current, TrackView.Trigger.Right);
            }
            else
            {
                //Debug.Log(string.Format("{0} played, but {1} was expected.", input, track.beats[current]));
                trackView.TriggerBeatView(current, TrackView.Trigger.Wrong);
            }
        }