123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System;
- using UnityEngine;
- using UnityEngine.UI;
- namespace SC.XR.Unity.Module_Keyboard
- {
- public class SCKeyboardBasePrompt : MonoBehaviour
- {
- protected int wordCount;
- public Text alreadyInput;
- public virtual void Init(Action<string> onPromptItemClick)
- {
- }
- public virtual int GetChinese(string englishWords)
- {
- wordCount = ChineseIMEManager.Instance.GetWordCount(englishWords);
- return wordCount;
- }
- public virtual string GetChinese(int index)
- {
- return ChineseIMEManager.Instance.GetWord(index);
- }
- public virtual string GetFirstChineseWord()
- {
- return "";
- }
- public virtual void SetEnteredText(string textStr)
- {
-
- }
- }
- }
|