19 lines
424 B
C#
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;
|
|
}
|
|
}
|
|
} |