using UnityEngine; public class Tank : MonoBehaviour { public float speed = 10.0f; public float rotationSpeed = 100.0f; void Update() { float translation = Input.GetAxis("Vertical") * speed * Time.deltaTime; float rotation = Input.GetAxis("Horizontal") * rotationSpeed * Time.deltaTime; transform.Translate(0f, 0f, translation); transform.Rotate(0f, rotation, 0f); } }