Advertisement
crystalguy123

Untitled

Jan 29th, 2020
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class PlayerMovement : MonoBehaviour
  6. {
  7. [SerializeField]
  8. private float _speed = 3.0f;
  9.  
  10.  
  11. // Start is called before the first frame update
  12. void Start()
  13. {
  14.  
  15. }
  16.  
  17. // Update is called once per frame
  18. void Update()
  19. {
  20. transform.Translate = (Vector3.up * _speed * Time.deltaTime);
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement