void OnDestroy() { if (_inst == this) { _inst = null; } }
void Awake() { if (_inst != null) { Debug.LogError("Duplicated BulletAssembler."); Destroy(this); return; } _inst = this; }