예제 #1
0
    public void ParentalControl()
    {
        if (PlayerPrefs.GetInt("Age") < 14 && ShieldHandler.Instance.isNew)
        {
            OtpEntryPanel.SetActive(true);
            var SmsScr = gameObject.GetComponent <rTwilio>();
            OTP = Random.Range(1111, 9999);
            SmsScr.SendSMS(OTP);
        }

        else
        {
            OtpEntryPanel.SetActive(false);
        }
    }
예제 #2
0
 public void OtpVerification()
 {
     //if (OTP == int.Parse(OtpInput.text))
     OtpEntryPanel.SetActive(false);
 }