Exemplo n.º 1
0
        public static IEnumerator sendSimple(UnityEngine.MonoBehaviour mo, IBuilderLite build, PacketHolder par)
        {
            var bundle = new Bundle();
            var data   = build.WeakBuild();

            Log.Net("send Simple " + bundle + " " + data);

            /*
             * After Build  builder Clear
             */

            bundle.newMessage(data.GetType());
            var fid = bundle.writePB(data);

            //Log.Net ("Perhaps network not ok");
            yield return(mo.StartCoroutine(bundle.sendCoroutine(KBEngine.KBEngineApp.app.networkInterface(), fid, par)));
        }