public void OnGenerateClicked() { mDetector = new GestureDetector(mGenerator.Generate(), mGenerator.GetGestureNames()); mDetector.MinThreshold = mGenerator.MinThreshold; mDetector.GestureDetected += OnGestureDetected; UnityGestureIO.SaveDetector("data/Detector.gd", mDetector); OnToggleTrainingClicked(); }
public override void Start() { base.Start(); mDetector = UnityGestureIO.LoadDetector("data/ForceDetector.gd"); mDetector.MinThreshold = .83f; mDetector.GestureDetected += OnGestureDetected; SetReceiver(mDetector); mLifter = GetComponent <Lifter>(); mLightningController = GetComponent <LightningController>(); mGlimpse = GetComponentInChildren <GlimpseController>(); mGlimpse.gameObject.SetActive(false); }