Ejemplo n.º 1
0
    private void TouchInputUpdate(LMTouchCtrl touch)
    {
        if (touch == null)
        {
            return;
        }

        if (touch.IsTouched)
        {
            m_playerCtrl.MoveByTouch(touch.CurrentPosition);
        }


        if (touch.IsTouched)
        {
            TGUtility.DrawHeatmap2D(touch.ScreenPosition);
        }
    }
Ejemplo n.º 2
0
    private void TouchInputUpdate()
    {
        var touch = TGInputSetting.Touch;

        if (touch == null)
        {
            return;
        }

        if (touch.IsTouched)
        {
            m_playerCtrl.MoveByTouch(touch.CurrentPosition);
        }


        if (touch.IsTouched)
        {
            TGUtility.DrawHeatmap2D(touch.ScreenPosition);
        }
    }