namespace Model { [ObjectEvent] public class UnitGateComponentSystem : ObjectSystem, IAwake { public void Awake(long gateSessionId) { this.Get().Awake(gateSessionId); } } public class UnitGateComponent : Component, ISerializeToEntity { public long GateSessionId; public void Awake(long gateSessionId) { this.GateSessionId = gateSessionId; } public ActorProxy GetActorProxy() { return Game.Scene.GetComponent().Get(this.GateSessionId); } } }