Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. public class Mover : MonoBehaviour
  4. {
  5.     public float movSpeed;
  6.  
  7.     private void Update()
  8.     {
  9.         if(Input.anyKey)
  10.         {
  11.             transform.position -= Vector3.left * Time.deltaTime * movSpeed;
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement