public void StartSpeech() { List <string> allCurses = xm.GetXmlList(); string curses = ""; for (int i = 0; i < allCurses.Count; i++) { curses += allCurses[i] + ":"; } kuang.text = curses; AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); AndroidJavaObject jo = jc.GetStatic <AndroidJavaObject>("currentActivity"); jo.Call("StartActivity1"); }
public void speechLi(string str) { kuang.text = str; List <string> allCurses = xm.GetXmlList(); string curses = ""; for (int i = 0; i < allCurses.Count; i++) { //curses += allCurses[i] + ":"; if (allCurses[i].Equals(str)) { setCurseOfFlash(); break; } } // if(str=="Flash" || str=="flash"){ // setCurseOfFlash(); // } }