reprends le flambeau

This commit is contained in:
esteb
2023-01-23 16:58:14 +01:00
parent c784e559f3
commit b17f2e2a79
23 changed files with 2450 additions and 21 deletions

View File

@@ -7,6 +7,7 @@ using TMPro;
public class SwipeManagementScript : MonoBehaviour
{
public TMP_Text header;
public TMP_Text textSteps;
public List<Text> lengths;
public int numberImage;
@@ -14,7 +15,11 @@ public class SwipeManagementScript : MonoBehaviour
public GameObject arrowLeft;
public GameObject arrowRight;
//public GameObject arrow;
public GameObject arrow;
public GameObject arrowGravure;
public GameObject warning;
public Button buttonleft;
public Button buttonright;
@@ -31,10 +36,13 @@ public class SwipeManagementScript : MonoBehaviour
private GameObject image;
private Image imageUI;
public bool isQR;
// 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);
@@ -64,6 +72,31 @@ public class SwipeManagementScript : MonoBehaviour
SwipeUp();
}
}
if(isQR)
{
if(numberImage == 1){
arrow.SetActive(true);
warning.SetActive(false);
}
if(numberImage == 2)
{
header.text = "Initialisation : Sécurité";
arrow.SetActive(false);
warning.SetActive(true);
}
if(numberImage == 3)
{
header.text = "Initialisation : Positionnement automatique";
warning.SetActive(false);
}
if(numberImage == 4)
{
header.text = "Placer la pièce à graver";
arrowGravure.SetActive(true);
}else{
arrowGravure.SetActive(false);
}
}
}
private void NextText(){