Files
HauntedBloodlines/Assets/Loading Screen/Example/Script/bl_LoadingScreenExample.cs
2025-05-29 22:31:40 +03:00

19 lines
424 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class bl_LoadingScreenExample : MonoBehaviour
{
public string SceneName = "LoadExample";
private bool loaded = false;
private void Update()
{
if (!loaded && Input.GetKeyDown(KeyCode.Space))
{
bl_SceneLoaderUtils.GetLoader.LoadLevel(SceneName);
loaded = true;
}
}
}