Example #1
0
 public override void ProcessRequest(AnimationRequest request)
 {
     if (request.CardText != null)
     {
         Play();
     }
     else
     {
         Successor?.ProcessRequest(request);
     }
 }
Example #2
0
 public override void ProcessRequest(AnimationRequest request)
 {
     if (Int32.TryParse(request.CardText, out var _))
     {
         Play();
     }
     else
     {
         Successor?.ProcessRequest(request);
     }
 }
Example #3
0
 public abstract void ProcessRequest(AnimationRequest request);