30 lines
556 B
C#
30 lines
556 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class TestLanguageTrans : MonoBehaviour
|
|
{
|
|
public InputField inputField;
|
|
public Text resultText;
|
|
public void OnClick()
|
|
{
|
|
LanguageTrans.Instance.TransLanguage(inputField.text, ShowResult);
|
|
}
|
|
void ShowResult(string r)
|
|
{
|
|
resultText.text = r;
|
|
}
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|