11 lines
194 B
C#
11 lines
194 B
C#
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
public class Destroyer : MonoBehaviour
|
||
|
|
{
|
||
|
|
// Destroy the GameObject this component is attached to
|
||
|
|
public void DestroySelf()
|
||
|
|
{
|
||
|
|
Destroy(gameObject);
|
||
|
|
}
|
||
|
|
}
|