Ejemplo n.º 1
0
    private void ToListeningState()
    {
        state = GestureListenerState.Listening;

        points = new List <Vector3>();

        handAnimator.SetBool("IsTriggered", true);
        foreach (ParticleSystem system in drawingIndicator)
        {
            system.Play();
        }
    }
Ejemplo n.º 2
0
    private void ToIdleState()
    {
        state = GestureListenerState.Idle;
        if (points != null)
        {
            points.Clear();
        }

        foreach (ParticleSystem system in drawingIndicator)
        {
            system.Stop();
            system.Clear();
        }
        handAnimator.SetBool("IsTriggered", false);
    }
Ejemplo n.º 3
0
 private void ToListeningGestureState()
 {
     state = GestureListenerState.ListeningGesture;
 }
Ejemplo n.º 4
0
 private void ToListeningShotState()
 {
     state = GestureListenerState.ListeningShot;
 }