protected virtual void OnNotifBehaviorEnded(IBoardNotifBehavior obj) { lock (this.objectLock) { this.CurrentActiveBehavior = null; } }
public override void InitializeLayer(IAIObjectFactory factory) { base.InitializeLayer(factory); this.CardFocused = null; this.CardAwakened = null; this.CurrentActiveBehavior = null; }
protected virtual void OnNotifBehaviorStarted(IBoardNotifBehavior obj) { lock (this.objectLock) { if (obj.IsThereBehaviorLabel) { ACardNotifBehavior cardNotifBehavior = obj as ACardNotifBehavior; this.CurrentActiveBehavior = new ActiveCardBehavior(cardNotifBehavior.GetType(), cardNotifBehavior.NbBehaviorUse, cardNotifBehavior.StateValue, cardNotifBehavior.OwnerCardEntity.Card.Name); } } }