ReplayPuzzleGame/Assets/Resources/Scripts/Utility/LevelSetUp.cs

23 lines
500 B
C#
Raw Normal View History

2026-02-10 08:18:34 +00:00
using UnityEngine;
public class LevelSetUp : MonoBehaviour
{
[Header("레벨 데이터 넣기")]
[SerializeField] private LevelData levelData;
private void Start()
{
if (GameManager.instance.currentLevelData == null)
{
if (levelData != null)
{
GameManager.instance.EnterLevel(levelData);
}
else
{
Debug.LogError("레벨 데이터 넣어!!");
}
}
}
}