16 lines
294 B
C#
16 lines
294 B
C#
|
|
using UnityEngine;
|
||
|
|
using UnityEngine.TestTools;
|
||
|
|
|
||
|
|
namespace BracerLib.Utility
|
||
|
|
{
|
||
|
|
[ExcludeFromCoverage]
|
||
|
|
public class EditorOnlyObject : MonoBehaviour
|
||
|
|
{
|
||
|
|
private void Awake()
|
||
|
|
{
|
||
|
|
if (Application.isPlaying)
|
||
|
|
Destroy(gameObject);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|