19 lines
400 B
C#
19 lines
400 B
C#
|
using System;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace ABI.CCK.Components
|
|||
|
{
|
|||
|
public class CVRBuilderSpawnable : MonoBehaviour
|
|||
|
{
|
|||
|
private void Reset()
|
|||
|
{
|
|||
|
if (GetComponent<CVRSpawnable>() != null)
|
|||
|
{
|
|||
|
Invoke("DestroyThis", 0);
|
|||
|
}
|
|||
|
}
|
|||
|
void DestroyThis() {
|
|||
|
DestroyImmediate(this);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|