Exemple #1
0
 public void ChangeRadioRight()
 {
     ++_currentRadio;
     if (_currentRadio > _maxRadios)
     {
         _currentRadio = 0;
         _stick.transform.localPosition = new Vector3(_stick.transform.localPosition.x - _stickStep * _maxRadios, _stick.transform.localPosition.y, _stick.transform.localPosition.z);
     }
     else
     {
         _stick.transform.localPosition = new Vector3(_stick.transform.localPosition.x + _stickStep, _stick.transform.localPosition.y, _stick.transform.localPosition.z);
     }
     music.ChangeRadio(_currentRadio);
 }