Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- public class Bullet : MonoBehaviour
- {
- private Vector3 direction;
- [SerializeField]
- private float speed;
- void Start() { }
- void Update()
- {
- transform.position += direction * Time.deltaTime * speed;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement