// Update is called once per frame void Update() { var coord = walker.GetCoordinate(); centreSpeed = coord.x * 2f - 1f; balance = 1f + coord.y; }
// Update is called once per frame void Update() { var coord = walker.GetCoordinate(); var red = colourOscillator.GetValue(); color1 = new Color(red, coord.x, coord.y); color2 = new Color(red, 1f - coord.x, 1f - coord.y); }
// Update is called once per frame void Update() { var coord = walker.GetCoordinate(); //0-1 widthOsc.speed = smallFactor + coord.x * bigFactor; speedOsc.speed = smallFactor + coord.y * bigFactor; mainOsc.speed = speedOsc.GetValue(); mainOsc.max = widthOsc.GetValue(); mainOsc.min = -1f * widthOsc.GetValue(); audio.pan = mainOsc.GetValue(); debug = audio.pan.ToString(); }
// Update is called once per frame void Update() { if (!started) { fadeIn(); } var coord = walker.GetCoordinate(); Osc1.speed = 0.1f + 199.9f * coord.x; Osc2.speed = 0.1f + 199.9f * coord.y; balance0.overallValue = share; balance1.overallValue = share * Osc1.GetValue(); balance2.overallValue = share * Osc2.GetValue(); }