Compare commits

..

No commits in common. "4a5cbe5dc712f1d06a9d6d315288c05d81b9415c" and "0fe0b8e0bf0c4077f2b5b93ce858bacc156ecedd" have entirely different histories.

3 changed files with 192 additions and 21 deletions

View File

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

View File

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

File diff suppressed because one or more lines are too long