Change maze

This commit is contained in:
Lucastaa
2026-05-02 20:32:27 +07:00
parent 3168cf452d
commit 5d961830a9
11 changed files with 829 additions and 10 deletions

View File

@@ -187,9 +187,13 @@ namespace Hallucinate.GameSetup.Maze
float safeScale = Mathf.Max(0.001f, visualProfile.scale);
float modelScaleMultiplier = 0.25f;
Vector3 worldPos = new Vector3(x * safeScale, 0, z * safeScale);
Vector3 localPos = new Vector3(x * safeScale, 0, z * safeScale);
GameObject newObj = Instantiate(prefab, worldPos, rotation, _container);
// GameObject newObj = Instantiate(prefab, worldPos, rotation, _container);
GameObject newObj = Instantiate(prefab, _container);
newObj.transform.localPosition = localPos;
newObj.transform.localRotation = rotation;
newObj.transform.localScale = Vector3.one * safeScale * modelScaleMultiplier;
_spawnedCells[pos] = newObj;