private void Reset() { this.callBack = null; this.headPositionLastFrame = null; this.upDownAmount = 0f; this.leftRightAmount = 0f; }
/// <summary> /// Register a HeadNodCallBack. /// Only one allowed at a time. /// Does not register, and returns false, if /// there is an existing callback. /// </summary> /// <param name="callBack"></param> public bool TryRegisterCallBack(IHeadNodCallback callBack) { if (this.callBack == null) { this.callBack = callBack; return(true); } return(false); }