22 lines
443 B
C#
22 lines
443 B
C#
using UnityEngine;
|
|
|
|
namespace VideoInput
|
|
{
|
|
public class KinectManagerBehaviour : MonoBehaviour
|
|
{
|
|
public IKinectSensor KinectSensor { get; private set; }
|
|
|
|
private void Awake()
|
|
{
|
|
var componentFactory = new ComponentFactory();
|
|
KinectSensor = componentFactory.CreateKinectSensor();
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
KinectSensor.Update();
|
|
}
|
|
}
|
|
}
|
|
|
|
|