private void KillAll() { foreach (GameObject _gameObject in gameObjectsAround) { if (_gameObject != null) { IExplode destructable = _gameObject.GetComponent <IExplode>(); if (destructable != null) { destructable.OnExplode((Vector2)this.transform.position); } } } }