- Home /
Question by
pranjalkhatri950 · Oct 31, 2020 at 03:24 AM ·
c#cubes
Squeezing cubes
I want my cubes in the background to smoothly scale up and down randomly with time , like that by Brackeys in party killer . Currently my code scales all of them up then down. My code : transform.localscale = new Vector3 (1f,Mathf.Sin(Time.time),1f); Any help?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613014923im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Rotating a cube horizontal axis 1 Answer
Don't draw cubes not touching air? 2 Answers