Пример #1
0
    //每一帧调用
    public void UpdatePerFrame(float dt)
    {
        _runtime  += dt;
        _deltaTime = dt;

        //获取协议号
        MessageStruct message = s_NetWorkManage.getCMsg();

        //传递给UI
        s_UILayerManage.UpdatePerFrame(dt, message.dest, message.cmd);
    }
Пример #2
0
    //每一帧调用
    public void UpdatePerFrame(float dt)
    {
        _runtime  += dt;
        _deltaTime = dt;
        //网络 是否有消息过来
        //int dest = NetWorkManage.NETACCEPTED;
        //int cmd = 0;

        //获取协议号
        MessageStruct message = s_NetWorkManage.getCMsg();

        //传递给UI
        s_UILayerManage.UpdatePerFrame(dt, message.dest, message.cmd);
    }
Пример #3
0
    //每一帧调用
    public void UpdatePerFrame(float dt)
    {
        _runtime  += dt;
        _deltaTime = dt;
        //网络 是否有消息过来
        int dest = NetWorkManage.NETACCEPTED;
        int cmd  = 0;

        //获取协议号
        s_NetWorkManage.getCMsg(ref dest, ref cmd);

        //传递给UI
        s_UILayerManage.UpdatePerFrame(dt, dest, cmd);
    }