test
This commit is contained in:
25
My project/Assets/Script/Fusee.cs
Normal file
25
My project/Assets/Script/Fusee.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user