public override void OnInitialize() { manager = GetManager<KinectManager>(); manager.AddGestureEvent(this); Stream gestureStream = typeof(GestureEvent).Assembly.GetManifestResourceStream(folder + GestureName + extention); //TODO null == gesture is if the file is not there. GestureDetector = new TemplatedGestureDetector(GestureName, gestureStream); GestureDetector.MinimalPeriodBetweenGestures = 0; GestureDetector.OnGestureDetected += detectedGesture; }