Files
SpaceDroid/My project/Assets/Script/Black Hole.cs

13 lines
205 B
C#
Raw Permalink Normal View History

2025-01-17 13:10:42 +01:00
using System;
using UnityEngine;
public class Black_Hole : MonoBehaviour
{
void Start()
{
}
private void OnTriggerEnter(Collider other)
{
Destroy(other.gameObject);
}
}