UnitGateComponent.cs 418 B

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