using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class bullet : MonoBehaviour
{   
    Rigidbody rig;
    void Start()
    {
        rig = GetComponent<Rigidbody>();
        rig.AddForce(transform.forward*100f, ForceMode.Impulse);
    }

    void Update()
    {
        Object.Destroy(gameObject,3);
    }
}
