Advertisement
Guest User

test

a guest
Oct 27th, 2015
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.77 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class test : MonoBehaviour {
  5.  
  6.     public string Login = "Erwan";
  7.     public string MotDePasse = "KillaOne";
  8.     public int Age = 18;
  9.     public long CarteDeCredit = 8966574477;
  10.     public int Numero3Chiffres = 257;
  11.     public string NomDuTitulaire = "Cdn";
  12.     public string PrenomDuTitulaire = "Erwan";
  13.     public long IDClient = 155478872255477;
  14.     public string EmailErwan = "KillaOne80@hotmail.com";
  15.  
  16.  
  17.     // Use this for initialization
  18.     void Start () {
  19.         Debug.Log(Login);
  20.         Debug.Log(MotDePasse);
  21.         Debug.Log(Age);
  22.         AgeRequis();
  23.         Identification();
  24.         IdentificationCarteDeCredit();
  25.         SecuriterEmail();
  26.     }
  27.  
  28.     void AgeRequis()
  29.     {
  30.         if (Age >= 18)
  31.             print("Vous avez l'age requis !");
  32.         else
  33.             print("Vous n'avez pas l'age requis !");
  34.     }
  35.  
  36.     void Identification()
  37.     {
  38.         if (Login == "Erwan" && MotDePasse == "KillaOne" && IDClient == 155478872255477)
  39.             print("Bienvenue sur votre compte banquaire " + Login);
  40.         else
  41.             print("Identifiant ou Mot de passe incorrect");
  42.     }
  43.    
  44.     void IdentificationCarteDeCredit()
  45.     {
  46.         if (CarteDeCredit == 8966574477 && Numero3Chiffres == 257 && NomDuTitulaire == "Cdn" && PrenomDuTitulaire == "Erwan")
  47.             print("Votre carte a était validée , vous pouvez profitez de ces avantages !");
  48.         else
  49.         print("Vos informations de carte de crédits sont érronés veuillez réessayer !");
  50.     }
  51.  
  52.     void SecuriterEmail()
  53.     {
  54.         if (EmailErwan == "KillaOne80@hotmail.com")
  55.             print("Votre email est confirmé");
  56.         else
  57.             print("Votre email n'a pas pu être confirmé");
  58.     }
  59.    
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement