UpdateIsRunning
How do I use Update Is Running
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
25 | UpdateIsRunning(); | 1 |
89 | void UpdateIsRunning() | 2 |
File name: JumpAndRunMovement.cs
Copy
22 void Update()
23 {
24 UpdateIsGrounded();
25 UpdateIsRunning();
26 UpdateFacingDirection();
27 }
File name: JumpAndRunMovement.cs
Copy
89 void UpdateIsRunning()
90 {
91 m_Animator.SetBool( "IsRunning", Mathf.Abs( m_Body.velocity.x ) > 0.1f );
92 }
UpdateIsRunning 125 lượt xem
Gõ tìm kiếm nhanh...