| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using Base;
- namespace Model
- {
- [ObjectEvent]
- public class NetOuterComponentEvent : ObjectEvent<NetOuterComponent>, IAwake, IAwake<string, int>, IUpdate
- {
- public void Awake()
- {
- this.Get().Awake();
- }
- public void Awake(string a, int b)
- {
- this.Get().Awake(a, b);
- }
- public void Update()
- {
- this.Get().Update();
- }
- }
-
- public class NetOuterComponent: NetworkComponent
- {
- public void Awake()
- {
- this.Awake(NetworkProtocol.UDP);
- }
- public void Awake(string host, int port)
- {
- this.Awake(NetworkProtocol.UDP, host, port);
- }
- public new void Update()
- {
- base.Update();
- }
- }
- }
|