private void HandleRotation() { if (_isRotationEnabled && !_isDrawMode && AudioPeerService.HasClip()) { _rotateTransform.Rotate(_rotateAxis.x * _rotateSpeed.x * Time.deltaTime * AudioPeerService.GetAmplitudeBuffer(), _rotateAxis.y * _rotateSpeed.y * Time.deltaTime * AudioPeerService.GetAmplitudeBuffer(), _rotateAxis.z * _rotateSpeed.z * Time.deltaTime * AudioPeerService.GetAmplitudeBuffer()); } }
private void Update() { if (AudioPeerService.HasClip()) { foreach (KeyValuePair <string, ILineModel> line in _lines) { if (!line.Value.KochTrailProperty.IsTrailEnabled) { EmissionReact(line.Value); ScaleReact(line.Value); } } } }