| 123456789101112131415161718192021222324252627282930313233343536 |
- namespace Model
- {
- [ObjectSystem]
- public class NetOuterComponentAwakeSystem : AwakeSystem<NetOuterComponent>
- {
- public override void Awake(NetOuterComponent self)
- {
- self.Awake();
- }
- }
- [ObjectSystem]
- public class NetOuterComponentUpdateSystem : UpdateSystem<NetOuterComponent>
- {
- 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();
- }
- }
- }
|