Updated player spawn location

This commit is contained in:
2025-06-25 15:12:15 +02:00
parent e4d3a0f242
commit e3bd7714dd

View File

@@ -48,7 +48,7 @@ public class MapGenManager : MonoBehaviour
startPoint.GetComponent<CreateEntrances>().SetEntrances(false, false, true, false);
// Instantiate the player at the starting position
GameObject player = Instantiate(Player, new Vector3(startPos.x, 1, startPos.z), Quaternion.identity, transform);
GameObject player = Instantiate(Player, new Vector3(startPos.x, 1, startPos.z - 5), Quaternion.identity, transform);
// Generate a random number of rooms
int roomCount = Random.Range(minRoomsNumber, maxRoomsNumber);