Unity-SpaceShooter/Assets/_Complete-Game/Scripts/Done_DestroyByBoundary.cs

10 lines
177 B
C#

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