Answers for "unity mouse look script 2021"

C#
2

unity mouse look script 2021

public float speed = 5;

void Update() {
    float x = Input.GetAxisRaw("Horizontal");
    float y = Input.GetAxisRaw("Vertical");     
    gameObject.transform.Translate(new Vector3(x,y,0) * speed * Time.deltaTime);
}
Posted by: Guest on June-12-2021

C# Answers by Framework

Browse Popular Code Answers by Language