// public GameObject CreatLis () // { // GameObject go = new GameObject (); // go.name = "Micro" + Num_lis; // go.AddComponent<AudioSource> (); // go.AddComponent<Micro> (); // return go; // } public Micro Start(Action <byte[]> fun, Action <int> voice = null, GButton btn = null) { // mi = microGo.GetComponent<Micro> ();//Micro.Get (true); mi = Micro.Get(); mi.Load(fun, voice, btn); return(mi); }
public Micro Play(byte[] data, string id, Action <string> end) { if (data == null || data.Length == 0) { return(null); } Micro m = Micro.Get(); m.SetData(data, id, end); return(m); }