Compare commits

...

2 Commits

3 changed files with 21 additions and 192 deletions

View File

@ -2310,7 +2310,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 5348617443534978374, guid: ece2161f7d9e2a143b4ddb22c44736e1, type: 3}
propertyPath: m_LocalPosition.z
value: -10.01
value: -15.26
objectReference: {fileID: 0}
- target: {fileID: 5348617443534978374, guid: ece2161f7d9e2a143b4ddb22c44736e1, type: 3}
propertyPath: m_LocalRotation.w

View File

@ -59,7 +59,9 @@ public class SpawnRandomObjectsScript : MonoBehaviour
);
// Инстанцируем объект с случайным поворотом
Instantiate(prefab, point.Position, randomRotation);
Transform child = Instantiate(prefab, point.Position, randomRotation).transform;
child.SetParent(transform);
}
}

File diff suppressed because one or more lines are too long