19 lines
No EOL
400 B
C#
Executable file
19 lines
No EOL
400 B
C#
Executable file
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);
|
|
}
|
|
}
|
|
} |