15 lines
284 B
C#
15 lines
284 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class DeathPlane : MonoBehaviour
|
||
|
{
|
||
|
private void OnTriggerEnter(Collider other)
|
||
|
{
|
||
|
if (other.gameObject.layer != 6)
|
||
|
{
|
||
|
Destroy(other.gameObject);
|
||
|
}
|
||
|
}
|
||
|
}
|