| 1234567891011121314151617181920212223242526272829303132333435 |
- namespace ETModel
- {
- [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.KCP);
- this.MessagePacker = new ProtobufPacker();
- this.MessageDispatcher = new ClientDispatcher();
- }
- public new void Update()
- {
- base.Update();
- }
- }
- }
|