Esempio n. 1
0
    //-------------------------------------------------------------------------
    public override void init()
    {
        EbLog.Note("ClientUCenter.init()");

        EntityMgr.getDefaultEventPublisher().addHandler(Entity);

        mPeer = new Ec.PhotonClientPeer(EntityMgr, (byte)_eUCenterNodeType.UCenter, (RpcSessionListener)this);
    }
Esempio n. 2
0
    //-------------------------------------------------------------------------
    public override void release()
    {
        if (mPeer != null)
        {
            mPeer.Disconnect();
            mPeer = null;
        }

        EbLog.Note("ClientUCenter.release()");
    }