示例#1
0
        private void lstHist_ManipulationCompleted(object sender, ManipulationCompletedEventArgs e)
        {
            Point start = new Point {
                X = e.ManipulationOrigin.X, Y = e.ManipulationOrigin.Y
            };
            Point           end      = e.TotalManipulation.Translation;
            GestureAnalyser ga       = new GestureAnalyser();
            Vector          v        = ga.getVector(start, end);
            char            possible = ga.probableChar(v);

            txtInput.Text += possible.ToString();
        }
示例#2
0
    void Init()
    {
        FindPlayer();

        if (!playerFound)
        {
            center = GameObject.CreatePrimitive(PrimitiveType.Sphere);
            center.transform.localScale = Vector3.one * 0.1f;
        }

        gestureAnalyser = FindObjectOfType <GestureAnalyser>();

        //initialParticleIntensity =
        particleSystem       = particleSystemParent.transform.GetChild(0).GetComponent <ParticleSystem>();
        initialParticleColor = particleSystem.GetComponent <Renderer>().material.color;

        //DrawGizmos();
        Invoke("PickNewTarget", 0.1f);
        InvokeRepeating("ActualizeParticleBehaviourTarget", 0f, 1f);

        inited = true;
    }