Answers for "unity move script if else"

C#
0

unity move script if else

moveInput = Input.GetAxisRaw("Horizontal");
if (moveInput > 0.5 || moveInput < -0.5)
{         
  rb.velocity = new Vector2(moveInput * moveSpeed, rb.velocity.y);    
}
Posted by: Guest on August-20-2020

C# Answers by Framework

Browse Popular Code Answers by Language