using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; public class SwipeScript : MonoBehaviour { public TMP_Text textSteps; public List lengths; public int numberImage; public int lengthTexts; public Button arrowLeft; public Button arrowRight; public Button quit; public GameObject canvas1; public GameObject canvas2; private Vector2 startTouchPosition; private Vector2 endTouchPosition; // Start is called before the first frame update void Start() { Button btnLeft = arrowLeft.GetComponent