Unity-SpaceShooter/Assets/Scripts/DestroyByBondary.cs

12 lines
204 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DestroyByBondary : MonoBehaviour
{
void OnTriggerExit(Collider other)
{
Destroy(other.gameObject);
}
}