soundvision/UnityProject/Assets/Scripts/VideoInput/KinectManagerBehaviour.cs

23 lines
443 B
C#
Raw Normal View History

using UnityEngine;
2019-07-07 07:39:46 +00:00
namespace VideoInput
{
public class KinectManagerBehaviour : MonoBehaviour
2019-07-07 07:39:46 +00:00
{
public IKinectSensor KinectSensor { get; private set; }
private void Awake()
2019-07-07 07:39:46 +00:00
{
var componentFactory = new ComponentFactory();
KinectSensor = componentFactory.CreateKinectSensor();
}
private void Update()
{
KinectSensor.Update();
}
}
}