Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1.     public InputField Username;
  2.     public InputField Email;
  3.     public InputField Password;
  4.  
  5.     bool isLogged = false;
  6.  
  7.     public void Register()
  8.     {
  9.         string userID = Username.text.ToString();
  10.         string userEm = Email.text.ToString();
  11.         string userPass = Password.text.ToString();
  12.  
  13.         string[] creds = { userID, userEm, userPass };
  14.  
  15.         RegisterPanel.SetActive(false);
  16.  
  17.         isLogged = true;
  18.  
  19.         System.IO.File.WriteAllLines(@"C:\Users\Alexandru\Documents\Register Login\credsUnity.txt", creds);
  20.  
  21.        
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement