Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- public class Mover : MonoBehaviour
- {
- public float movSpeed;
- private void Update()
- {
- if(Input.anyKey)
- {
- transform.position -= Vector3.left * Time.deltaTime * movSpeed;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement