OnRegister() public method

public OnRegister ( ) : void
return void
Esempio n. 1
0
    public void Init()
    {
        _socket = new SocketClient();
        _socket.OnRegister();

        _onSocket = LuaManager.instance.GetFunction("Network.Response");
        _onHttp   = LuaManager.instance.GetFunction("Network.HttpResponse");
    }
Esempio n. 2
0
    void Start()
    {
        _socket = new SocketClient();
        _socket.OnRegister();

        _onSocket  = LuaMgr.Inst.GetFunction("Network.Response");
        _onHttp    = LuaMgr.Inst.GetFunction("Network.HttpResponse");
        _reConnect = LuaMgr.Inst.GetFunction("Network.OnReConnect");
    }
        /// <summary>
        /// 初始化
        /// </summary>
        public override void DoInit()
        {
            if (m_SocketClient == null)
            {
                return;
            }

            m_SocketClient.OnRegister();
        }
Esempio n. 4
0
 static int OnRegister(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         SocketClient obj = (SocketClient)ToLua.CheckObject <SocketClient>(L, 1);
         obj.OnRegister();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 5
0
 void Start()
 {
     client = new SocketClient();
     client.OnRegister();
     client.SendConnect();
 }
Esempio n. 6
0
 public override void Awake(MonoBehaviour mono)
 {
     m_clients = new SocketClient();
     m_clients.OnRegister(AddEvent);
 }
Esempio n. 7
0
 public override void Init()
 {
     _socketClient = new SocketClient();
     _socketClient.OnRegister();
 }
Esempio n. 8
0
 public override void OnInit()
 {
     base.OnInit();
     SocketClient.OnRegister();
 }