public void Construct(IInputManager input, StartWindow.Factory startWindow, IScoreManager scoreManager) { var createState = new Sequence( new ParallelSelector( new MoveUnit(), new SwitchMoveDirection(input), new CheckUnitInField() ), new DropBall(), new CustomAction(c => { scoreManager.Finish(); startWindow.Create(); }), new DestroyEntity() ); Behaiour.Register(BehaiourState.Create, createState); }