using System.Collections; using System.Collections.Generic; using UnityEngine; public class Bullet : MonoBehaviour { private Rigidbody rb; void Start() { rb = GetComponent(); rb.AddRelativeForce(Vector3.forward * 800.0f); } }