CubeGestureListener.IsSwipeRight C# (CSharp) Method

IsSwipeRight() public method

Determines whether swipe right is detected.
public IsSwipeRight ( ) : bool
return bool
	public bool IsSwipeRight()
	{
		if(swipeRight)
		{
			swipeRight = false;
			return true;
		}
		
		return false;
	}

Usage Example

    private void Update()
    {
        m_TimeElapsed += Time.deltaTime;

        if (!m_GestureListener)
        {
            return;
        }

        if (m_GestureListener.isTPose())
        {
            ForceFieldSwitch();
        }
        else if (m_GestureListener.IsSwipeLeft())
        {
            m_LeftPlaying = ParticleStartStop(m_ParticleWallLeft, m_LeftPlaying);
        }
        else if (m_GestureListener.IsSwipeRight())
        {
            m_RightPlaying = ParticleStartStop(m_ParticleWallRight, m_RightPlaying);
        }
        else if (m_GestureListener.IsSwipeUp())
        {
            m_TopPlaying = ParticleStartStop(m_ParticleWallTop, m_TopPlaying);
        }
    }
All Usage Examples Of CubeGestureListener::IsSwipeRight