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

23 lines
472 B
C#
Raw Normal View History

namespace VideoInput
{
public interface IKinectSensor
{
IInfraredCamera InfraredCamera { get; }
2019-07-07 07:39:46 +00:00
void Update();
}
public class KinectSensor : IKinectSensor
{
public IInfraredCamera InfraredCamera { get; }
public KinectSensor(IInfraredCamera infraredCamera)
{
InfraredCamera = infraredCamera;
}
2019-07-07 07:39:46 +00:00
public void Update()
{
InfraredCamera.Update();
}
}
}