soundvision/UnityProject/Assets/Scripts/VideoInput/KinectManager.cs
2019-07-07 09:39:46 +02:00

22 lines
438 B
C#

using UnityEngine;
namespace VideoInput
{
public class KinectManager : MonoBehaviour
{
public IKinectSensor KinectSensor { get; private set; }
private void Start()
{
var componentFactory = new ComponentFactory();
KinectSensor = componentFactory.CreateKinectSensor();
}
private void Update()
{
KinectSensor.Update();
}
}
}