private void Update()
        {
            var l = _metronome.GetLapse();

            l = Mathf.Sin(l * Mathf.PI);

            //Image.color = new Color(1, 1, 1, l);

            transform.localScale = Vector3.Lerp(_scale, _iniScale, l);

            transform.position = _iniPos + Dir * Dist * l;
        }
Beispiel #2
0
        private void GetInput()
        {
            if (Input.GetButtonDown("Horizontal"))
            {
                var l = _metronome.GetLapse();

                l = Mathf.Sin(l * Mathf.PI);

                if (l < 0.6f)
                {
                    _menuManager.HitFeedBack(l + 1);
                    MoveTo(-Input.GetAxis("Horizontal"));
                    _hit = true;
                }
                else if (l > 0.6f)
                {
                    ResetCombo();
                }
            }
        }
Beispiel #3
0
 private void Update()
 {
     Text.text = _metronome.GetLapse().ToString("0.000");
 }