//------------------------------------------------------------------------- public override void init() { EbLog.Note("ClientUCenter.init()"); EntityMgr.getDefaultEventPublisher().addHandler(Entity); mPeer = new Ec.PhotonClientPeer(EntityMgr, (byte)_eUCenterNodeType.UCenter, (RpcSessionListener)this); }
//------------------------------------------------------------------------- public override void release() { if (mPeer != null) { mPeer.Disconnect(); mPeer = null; } EbLog.Note("ClientUCenter.release()"); }