CubeGestureListener.IsSwipeLeft C# (CSharp) Method

IsSwipeLeft() public method

Determines whether swipe left is detected.
public IsSwipeLeft ( ) : bool
return bool
	public bool IsSwipeLeft()
	{
		if(swipeLeft)
		{
			swipeLeft = 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::IsSwipeLeft