dwelling act 4 (live motion cap w/ kinect azure)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
756 B

1 year ago
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
using com.rfilkov.kinect;
namespace com.rfilkov.components
{
/// <summary>
/// This component loads the first real scene of the game, after the startup scene.
/// </summary>
public class LoadFirstLevel : MonoBehaviour
{
// prevents multiple loads
private bool levelLoaded = false;
void Update()
{
KinectManager kinectManager = KinectManager.Instance;
if (!levelLoaded && kinectManager && kinectManager.IsInitialized())
{
levelLoaded = true;
Debug.Log($"Loading level 1...");
SceneManager.LoadScene(1);
}
}
}
}