ScrollMovement
How do I use Scroll Movement
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
24 | ScrollMovement (); | 1 |
37 | void ScrollMovement(){ | 2 |
File name: Background.cs
Copy
22 void Update () {
23 if (GameplayController.instance.startMoving) {
24 ScrollMovement ();
25 }
26 }
File name: Background.cs
Copy
37 void ScrollMovement(){
38 offset.y += speed * Time.deltaTime;
39 mat.SetTextureOffset ("_MainTex", offset);
40 }
ScrollMovement 119 lượt xem
Gõ tìm kiếm nhanh...