Дописывание скрипта рандомайза объектов
This commit is contained in:
@ -59,7 +59,9 @@ public class SpawnRandomObjectsScript : MonoBehaviour
|
||||
);
|
||||
|
||||
// Инстанцируем объект с случайным поворотом
|
||||
Instantiate(prefab, point.Position, randomRotation);
|
||||
Transform child = Instantiate(prefab, point.Position, randomRotation).transform;
|
||||
child.SetParent(transform);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user