Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. public void SelectCard()
  2. {
  3. switch (externalVariable)
  4. {
  5. case 1:
  6. UnityEngine.Debug.Log("You win a point!");
  7. Application.LoadLevel("Mini Game 1");
  8. break;
  9.  
  10. case 2:
  11. UnityEngine.Debug.Log("You lose a life!!!");
  12. Application.LoadLevel("Mini Game 1");
  13. break;
  14.  
  15. case 3:
  16. UnityEngine.Debug.Log("You lose a life!!!");
  17. Application.LoadLevel("Mini Game 1");
  18. break;
  19.  
  20. case 4:
  21. UnityEngine.Debug.Log("You lose a life!!!");
  22. Application.LoadLevel("Mini Game 1");
  23. break;
  24.  
  25. case 5:
  26. UnityEngine.Debug.Log("You lose a life!!!");
  27. Application.LoadLevel("Mini Game 1");
  28. break;
  29. }
  30. }
  31.  
  32. externalVariable= externalObject.GetComponent<MiniGame1RightCard>().rightCard;
  33. UnityEngine.Debug.Log("The right card is card number: " + externalVariable);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement