LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/LevelGenerationManager.cs

32 lines
660 B
C#
Raw Normal View History

2023-12-22 22:51:17 +00:00
using DunGen;
using UnityEngine;
public class LevelGenerationManager : MonoBehaviour
{
public RuntimeDungeon dungeonGenerator;
private StartOfRound playersManager;
private RoundManager roundManager;
private void Awake()
{
roundManager = Object.FindObjectOfType<RoundManager>();
playersManager = Object.FindObjectOfType<StartOfRound>();
if (playersManager != null)
{
dungeonGenerator.Generator.ShouldRandomizeSeed = false;
dungeonGenerator.Generator.Seed = playersManager.randomMapSeed;
dungeonGenerator.Generate();
}
else
{
Debug.Log("PLAYERS MANAGER WAS NOT FOUND FROM OTHER SCENE!");
}
}
private void Update()
{
}
}