diff --git a/Destroy_Game_Object b/Destroy_Game_Object new file mode 100644 index 0000000..5512244 --- /dev/null +++ b/Destroy_Game_Object @@ -0,0 +1,12 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class Enemy_Destroy : MonoBehaviour +{ + Rigidbody rb; + private void OnCollisionEnter(Collision collision) + { + Destroy(gameObject); + } +}