Дописывание скрипта рандомайза объектов
This commit is contained in:
parent
802960ab9b
commit
ccd02360e9
@ -2310,7 +2310,7 @@ PrefabInstance:
|
|||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 5348617443534978374, guid: ece2161f7d9e2a143b4ddb22c44736e1, type: 3}
|
- target: {fileID: 5348617443534978374, guid: ece2161f7d9e2a143b4ddb22c44736e1, type: 3}
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: -10.01
|
value: -15.26
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 5348617443534978374, guid: ece2161f7d9e2a143b4ddb22c44736e1, type: 3}
|
- target: {fileID: 5348617443534978374, guid: ece2161f7d9e2a143b4ddb22c44736e1, type: 3}
|
||||||
propertyPath: m_LocalRotation.w
|
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