Change maze
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user