Пример #1
0
 public GoToFloorState(StateContext context) : base(context)
 {
     NextAction = new OpenFloorDoorState(context);
 }
Пример #2
0
 public CloseDoorsState(StateContext context) : base(context)
 {
     NextAction = new GoToFloorState(context);
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StateBase"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public StateBase(StateContext context)
 {
     Context = context;
 }
Пример #4
0
 public OpenFloorDoorState(StateContext context) : base(context)
 {
 }