public void SendMailMessage() { string prefString = (isBugReport) ? "_alt_inpJoy" : "_defaults_ax"; int currentTime = DarkRef.GetSystemTime(); int lastTime = 0; string val = DarkRef.DecryptString(PlayerPrefs.GetString(prefString, ""), 2, true); if (val == "dse-1") { PlayerPrefs.SetString(prefString, DarkRef.EncryptString((currentTime * ((isBugReport) ? 19 : 8)).ToString(), 2)); StartCoroutine(ClearInputs()); return; } if (int.TryParse(val, out lastTime)) { if (!DarkRef.CheckAccess() && Mathf.Abs(currentTime - (lastTime / ((isBugReport) ? 19 : 8))) <= 30) { StartCoroutine(FadePanelMessage()); return; } } else if (PlayerPrefs.HasKey(prefString) && PlayerPrefs.GetString(prefString) != "") { return; } StartCoroutine(SendMessageRoutine()); PlayerPrefs.SetString(prefString, DarkRef.EncryptString((currentTime * ((isBugReport) ? 19 : 8)).ToString(), 2)); }