Пример #1
0
 internal void OnPositionChanged(Portfolio portfolio, Position position, bool queued)
 {
     var e = new OnPositionChanged(portfolio, position);
     if (queued)
         this.queue.Enqueue(e);
     else
         OnEvent(e);
 }
Пример #2
0
 protected override void Awake()
 {
     base.Awake();
     OnPositionChanged.AddListener(OnPositionChangedCallbck);
 }