public EntityStateMachine(MovingEntityWithStates ownerVehicle, State startingState = null, State parentState = null) { OwnerEntity = ownerVehicle; this.StartingState = startingState; this.ParentState = parentState; }
public EntityState(EntityStateMachine ownerFiniteStateMachine) { this.ownerFiniteStateMachine = ownerFiniteStateMachine; OwnerEntity = ownerFiniteStateMachine.OwnerEntity; }