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