17 lines
253 B
C#
Raw Normal View History

2025-09-24 11:24:38 +05:00
namespace TPSBR
{
using UnityEngine;
[DefaultExecutionOrder(-9999)]
public class DeleteInBatchMode : MonoBehaviour
{
private void Awake()
{
if (Application.isBatchMode == true)
{
GameObject.DestroyImmediate(gameObject);
}
}
}
}