игрок спанится в стартовой комнате, полу назначается уровень, тема комнате назначается

This commit is contained in:
vladislove committed 2026-10-12 20:20:05 +03:00
1 parent bf675c75e2
commit d05e6d8cf3
9 files changed
+78 -73

No files matched your search

@@ -64,7 +64,9 @@ namespace _Project.Scripts.LevelGenerating
// пол: нормаль вверх
var floorGo = Make(roomGo.transform, "Floor", new Vector3(c.x, 0f, c.z),
Quaternion.identity, scale, true);
floorGo.layer = LayerMask.NameToLayer("Ground");
view.FloorRenderers.AddRange(floorGo.GetComponentsInChildren<Renderer>());
// потолок: перевёрнут, нормаль вниз
var ceilingGo = Make(roomGo.transform, "Ceiling", new Vector3(c.x, wallHeight, c.z),