Пример #1
0
    private void Start()
    {
        netService = TGNetService.GetInstance();

        //StartCoroutine(doJoystick());
        //StartCoroutine(doScreenClick());
    }
    private void OnDestroy()
    {
        if (lua != null)
        {
            lua.Dispose();
            lua = null;
        }

        TGNetService.GetInstance().Stop();
    }
Пример #3
0
 static int GetInstance(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 0);
         TGNetService o = TGNetService.GetInstance();
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }