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