15 lines
284 B
C#
Raw Permalink Normal View History

2025-01-17 13:10:20 +01:00
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);
}
}
}