26 lines
510 B
C#
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);
|
|
}
|
|
}
|
|
}
|