Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity c# script for movement left and right

 transform.Translate(Vector3.right * Time.deltaTime * Input.GetAxis("Horizontal")* moveSpeed);   
 
PREVIOUS NEXT
Tagged: #unity #script #movement #left
ADD COMMENT
Topic
Name
6+1 =