17 lines
253 B
C#
17 lines
253 B
C#
|
namespace TPSBR
|
||
|
{
|
||
|
using UnityEngine;
|
||
|
|
||
|
[DefaultExecutionOrder(-9999)]
|
||
|
public class DeleteInBatchMode : MonoBehaviour
|
||
|
{
|
||
|
private void Awake()
|
||
|
{
|
||
|
if (Application.isBatchMode == true)
|
||
|
{
|
||
|
GameObject.DestroyImmediate(gameObject);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|