private void OnDestroy() { if (_poolController != null) { foreach (var component in _poolController.GetComponents <DamageNumber>( )) { Destroy(component); } Destroy(_poolController); } }
private void OnDestroy() { if (_poolController != null) { foreach (var component in _poolController.GetComponents <DamageNumber>( )) { Destroy(component); } Destroy(_poolController); } }