You've already forked Darklings-FightingGame
mirror of
https://github.com/izzy2lost/Darklings-FightingGame.git
synced 2026-03-10 11:35:19 -07:00
17 lines
360 B
C#
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);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|