Advertisement
kadyr

Untitled

Oct 24th, 2021
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. public class Bullet : MonoBehaviour
  4. {
  5. private Vector3 direction;
  6.  
  7. [SerializeField]
  8. private float speed;
  9.  
  10. void Start() { }
  11.  
  12. void Update()
  13. {
  14. transform.position += direction * Time.deltaTime * speed;
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement