Merge branch 'devVlad' into HelmetVersion
This commit is contained in:
commit
4a5cbe5dc7
@ -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
|
||||
|
@ -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
Loading…
x
Reference in New Issue
Block a user