CodeColaCaptchaManager.cs 897 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using UnityEngine;
  2. using System.Collections;
  3. public class CodeColaCaptchaManager : MonoBehaviour
  4. {
  5. public static CodeColaCaptchaManager Instance;
  6. public bool DoneCaptcha;
  7. public bool DoneCode;
  8. void Start()
  9. {
  10. Instance = this;
  11. }
  12. private void onDoneCaptcha()
  13. {
  14. Debug.Log("onDoneCaptcha");
  15. PlayerPrefs.SetInt("Captcha", 1);
  16. DoneCaptcha = true;
  17. }
  18. private void onDoneCode()
  19. {
  20. Debug.Log("onDoneCode");
  21. PlayerPrefs.SetInt("Code", 1);
  22. DoneCode = true;
  23. }
  24. public bool CheckingCode(string mail)
  25. {
  26. return IsValidCode(mail);
  27. }
  28. public bool IsValidCode(string mail)
  29. {
  30. return true;
  31. }
  32. public bool CheckingCaptcha(string mail)
  33. {
  34. return IsValidCaptcha(mail);
  35. }
  36. public bool IsValidCaptcha(string mail)
  37. {
  38. return true;
  39. }
  40. }