UnitGateComponent.cs 434 B

1234567891011121314151617181920212223
  1. namespace ET
  2. {
  3. [ObjectSystem]
  4. public class UnitGateComponentAwakeSystem : AwakeSystem<UnitGateComponent, long>
  5. {
  6. public override void Awake(UnitGateComponent self, long a)
  7. {
  8. self.Awake(a);
  9. }
  10. }
  11. public class UnitGateComponent : Entity, ISerializeToEntity
  12. {
  13. public long GateSessionActorId;
  14. public bool IsDisconnect;
  15. public void Awake(long gateSessionId)
  16. {
  17. this.GateSessionActorId = gateSessionId;
  18. }
  19. }
  20. }