игрок спанится в стартовой комнате, полу назначается уровень, тема комнате назначается
This commit is contained in:
1 parent
bf675c75e2
commit
d05e6d8cf3
9 files changed
+78
-73
No files matched your search
@@ -31,6 +31,7 @@ namespace _Project.Scripts.LevelGenerating
|
||||
[SerializeField] private float _minDistanceStartLift; // метры
|
||||
[SerializeField] private GameObject GameObjectA;
|
||||
[SerializeField] private GameObject GameObjectB;
|
||||
[SerializeField] private GameObject Player;
|
||||
[SerializeField] private ShellSpawner shellSpawner; // если назначен, строит пол, стены и потолок
|
||||
[SerializeField] private RoomGeneratorRegistry roomGenerators; // оформляет комнаты по темам (материалы, свет)
|
||||
|
||||
@@ -63,9 +64,11 @@ namespace _Project.Scripts.LevelGenerating
|
||||
private static readonly RoomType[] FullRoles = { RoomType.Storage, RoomType.SwitchboardRoom, RoomType.BoilerRoom };
|
||||
|
||||
void Start()
|
||||
{
|
||||
{
|
||||
ReadSettings();
|
||||
Generate(0); // позже этим будет управлять оркестратор
|
||||
var data = Generate(0); // позже этим будет управлять оркестратор
|
||||
var pos = data.Start.Center;
|
||||
Player.transform.position = new Vector3(pos.x/2f, 10, pos.y/2f);
|
||||
}
|
||||
|
||||
void ReadSettings()
|
||||
|
||||
Reference in new issue
Block a user