using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; public class SwipeManagementScript : MonoBehaviour { public TMP_Text header; public TMP_Text textSteps; public List lengths; public int numberImage; public int lengthTexts; public GameObject arrowLeft; public GameObject arrowRight; public GameObject arrow; public GameObject arrowGravure; public GameObject arrowXY; public GameObject arrowHB; public GameObject arrowPause; public GameObject circleXY; public GameObject circleHB; public GameObject warning; public Button buttonleft; public Button buttonright; public Animator m_Animator; public TMP_Text textNumber; public List images; private Vector2 startTouchPosition; private Vector2 endTouchPosition; private GameObject image; private Image imageUI; // Start is called before the first frame update void Start() { header.text = "Allumer la Speedy 100"; textSteps.text = lengths[0].text; textNumber.text = "Step 1/" + (lengthTexts+1); arrowLeft.gameObject.SetActive(false); Button btnLeft = buttonleft.GetComponent