2025-09-24 11:24:38 +05:00

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);
}
}
}
}