namespace Model { [ObjectSystem] public class NetOuterComponentAwakeSystem : AwakeSystem { public override void Awake(NetOuterComponent self) { self.Awake(); } } [ObjectSystem] public class NetOuterComponentUpdateSystem : UpdateSystem { public override void Update(NetOuterComponent self) { self.Update(); } } public class NetOuterComponent : NetworkComponent { public void Awake() { this.Awake(NetworkProtocol.TCP); this.MessagePacker = new ProtobufPacker(); // 由hotfix中设置 //this.MessageDispatcher = new ClientDispatcher(); } public new void Update() { base.Update(); } } }