Files
2025-01-17 13:10:42 +01:00

26 lines
510 B
C#

using UnityEngine;
public class Fusee : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
}
private void OnCollisionEnter(Collision other)
{
if (other.gameObject.layer == 7 || other.gameObject.layer == 10)
{
Destroy(other.gameObject);
Destroy(this.gameObject);
}
}
}