12 lines
236 B
C#
12 lines
236 B
C#
using UnityEngine;
|
|
|
|
namespace Obvious.Soap.Example
|
|
{
|
|
public class DestroyObjectOnTrigger : MonoBehaviour
|
|
{
|
|
private void OnTriggerEnter(Collider other)
|
|
{
|
|
Destroy(other.gameObject);
|
|
}
|
|
}
|
|
} |