| 1234567891011121314151617181920212223 |
- namespace Model
- {
- [EntityEvent(EntityEventId.NetOuterComponent)]
- public class NetOuterComponent: NetworkComponent, IAwake, IAwake<string, int>, IUpdate
- {
- public void Awake()
- {
- this.Awake(NetworkProtocol.TCP);
- this.messagePacker = new JsondotnetPacker();
- }
- public void Awake(string host, int port)
- {
- this.Awake(NetworkProtocol.TCP, host, port);
- this.messagePacker = new JsondotnetPacker();
- }
- public new void Update()
- {
- base.Update();
- }
- }
- }
|