// Start is called before the first frame update private void Start() { mvtRecognition = new MvtRecognition(Player, CharacterExample, UiHips, Store, NbFirstMvtToCheck, PercentageVarianceAccepted, canvas, graph); mvtRecognition.InitActor(); mvtRecognition.InitMvtSet(); pointingHandler = new PointingHandler(Player, DegreeOfMarginPointing, DegreeOfMarginValidating, LineMenu, LeftHand, ClipConfirm, ClipPointing, mvtRecognition); pointingHandler.InitPointingHandler(); }
public PointingHandler(GameObject player, int degreeOfMarginPointing, int degreeOfMarginValidating, LineRenderer lineMenu, GameObject leftHand, AudioClip clipConfirm, AudioClip clipPointing, MvtRecognition mvtRecognition) { this.player = player; this.degreeOfMarginPointing = degreeOfMarginPointing; this.degreeOfMarginValidating = degreeOfMarginValidating; this.lineMenu = lineMenu; this.leftHand = leftHand; this.clipConfirm = clipConfirm; this.clipPointing = clipPointing; this.mvtRecognition = mvtRecognition; }