private void MakeABang() { var bang = new Bang(transform.position.ToCell()).Create(); var bangSettings = bang.GetComponent <BangSettings>(); bangSettings.distance = distance; bangSettings.lifeTime = bangLifeTime; if (bangController == null) { return; } bangSettings.stoppedTags = bangController.GetStoppedTags(); bangSettings.AddActionWithAttackedObjects(bangController.ActionWithAttackedObjects); bangSettings.AddActionAfterBang(bangController.ActionAfterBang); }