Files
Darklings-FightingGame/Assets/_Project/Scripts/DebugScripts/DebugLoader.cs
2022-08-17 23:14:28 +03:00

17 lines
360 B
C#

using UnityEngine;
using UnityEngine.SceneManagement;
public class DebugLoader : MonoBehaviour
{
[SerializeField] private bool _loadDebug = default;
void Awake()
{
if (_loadDebug && !SceneManager.GetSceneByName("DebugScene").isLoaded)
{
SceneManager.LoadScene("DebugScene", LoadSceneMode.Additive);
}
}
}