Advertisement
GauHelldragon

Untitled

Mar 24th, 2022
865
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.88 KB | None | 0 0
  1.  using System.Collections;
  2.     using System.Collections.Generic;
  3.     using UnityEngine;
  4.     using UnityEngine.UI;
  5.      
  6.     public class DialogControl : MonoBehaviour
  7.     {
  8.  
  9.         public int state = 0;
  10.         public Text dialogText;
  11.  
  12.      
  13.      
  14.      
  15.         public void Next()
  16.         {
  17.             state++;
  18.             switch (state)
  19.             {
  20.                 case 1:
  21.                     dialogText.text = "Software Engineer: I can't get access to my email, can you help";
  22.                     break;
  23.                 case 2:
  24.  
  25.                     dialogText.text = "Cyber Security Engineer: Do you remember your log-in information";
  26.                     break;
  27.                 case 3:
  28.  
  29.                     dialogText.text = "Software Engineer: I remember my username I.D, but I forgot my password";
  30.                     break;
  31.                 case 4:
  32.  
  33.                     dialogText.text = "Cyber Security Engineer: I can't give you access unless you remember your password or unless if you change it";
  34.                     break;
  35.                 case 5:
  36.                     dialogText.text = "Software Engineer: Ok then, I would like to reset my password";
  37.                     break;
  38.                 case 6:
  39.  
  40.                     dialogText.text = "Cyber Security Engineer: ok, type your information on the green screen and you'll receive a text or email shortly with a code to verify to retrieve your new password";
  41.                     break;
  42.                 case 7:
  43.  
  44.                     dialogText.text = "Software Engineer: ok thanks, now I just verified the code and updated my new password. I'm about to log in right now";
  45.                     break;
  46.                 case 8:
  47.  
  48.                     dialogText.text = "Cyber Security Engineer: It's official, your all logged in and all set to go";
  49.                     break;
  50.         }
  51.        
  52.         }
  53.      
  54.  
  55.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement