first commit
This commit is contained in:
12
Assets/Materials/JusticeScale/Demo/Scripts/DestroyObjects.cs
Normal file
12
Assets/Materials/JusticeScale/Demo/Scripts/DestroyObjects.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace JusticeScale.Demo.Scripts
|
||||
{
|
||||
public class DestroyObjects : MonoBehaviour
|
||||
{
|
||||
private void OnTriggerExit(Collider other)
|
||||
{
|
||||
Destroy(other.gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user