private void SpawnNewItem_ObjectSpawned(object sender, ObjectSpawnedEventArgs e) { _instructionManager.AddItem(new Item(e.SpawnedObject)); var boundingBox = e.SpawnedObject.GetComponentInChildren <BoundingBox>(); boundingBox.RotateStopped.AddListener(OnItemManipulated); boundingBox.ScaleStopped.AddListener(OnItemManipulated); var manipulationManagers = e.SpawnedObject.GetComponentsInChildren <ManipulationHandler>(); foreach (var manager in manipulationManagers) { manager.OnManipulationEnded.AddListener(OnItemManipulated); } }