String 将字符串与if语句一起使用
我有以下代码:String 将字符串与if语句一起使用,string,if-statement,String,If Statement,我有以下代码: public UILabel Error; void OnRegister(GameObject g) { if (Error.text.Equals("That e-mail address is in use. Use password recovery if you forgot your password.")) { Error.text= "Inserisci un indirizzo di posta elettronica (email) valid
public UILabel Error;
void OnRegister(GameObject g)
{
if (Error.text.Equals("That e-mail address is in use. Use password recovery if you forgot your password."))
{
Error.text= "Inserisci un indirizzo di posta elettronica (email) valido. Questa operazione e’ importante per recuperare la tua parola chiave (password), nel momento in cui l’hai dimenticata.";
return;
}
}
我想做的是当字符串输入到UILabel时,当一个按钮(具有OnRegister函数)将字符串转换为意大利语时。谢谢你的帮助:)不清楚你在问什么。您已经发布了一些代码,并说明了要执行的操作。你要我们帮你解决什么问题?这是反模式的。。使用xml文件翻译字符串。您使用的是什么语言和平台?我认为是c#和monoim使用c#和mono