Esempio n. 1
0
    public void OnGenerateClicked()
    {
        mDetector = new GestureDetector(mGenerator.Generate(), mGenerator.GetGestureNames());
        mDetector.MinThreshold     = mGenerator.MinThreshold;
        mDetector.GestureDetected += OnGestureDetected;

        UnityGestureIO.SaveDetector("data/Detector.gd", mDetector);

        OnToggleTrainingClicked();
    }
Esempio n. 2
0
    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);
    }