Updated player spawn location
This commit is contained in:
@@ -48,7 +48,7 @@ public class MapGenManager : MonoBehaviour
|
|||||||
startPoint.GetComponent<CreateEntrances>().SetEntrances(false, false, true, false);
|
startPoint.GetComponent<CreateEntrances>().SetEntrances(false, false, true, false);
|
||||||
|
|
||||||
// Instantiate the player at the starting position
|
// 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
|
// Generate a random number of rooms
|
||||||
int roomCount = Random.Range(minRoomsNumber, maxRoomsNumber);
|
int roomCount = Random.Range(minRoomsNumber, maxRoomsNumber);
|
||||||
|
|||||||
Reference in New Issue
Block a user