private void PlaceTower(StructureType structureType, Vector3 worldPosition, StructureSocket socket) { if (socket != null) { socket.SetHasStructure(true); } var tower = CreateStructure(structureType); tower.transform.position = worldPosition + placementOffset; var structure = tower.GetComponent <Structure>(); structure.Init(socket); }