public void InitializeWithDefaultDependencies(ISceneHandler sceneHandler) { var blockerAnimationHandler = new BlockerAnimationHandler(); var blockerInstanceHandler = new BlockerInstanceHandler(); blockerInstanceHandler.Initialize( blockerAnimationHandler ); Initialize( sceneHandler, blockerInstanceHandler); }
public static WorldBlockersController CreateWithDefaultDependencies(ISceneHandler sceneHandler, DCLCharacterPosition characterPosition) { var blockerAnimationHandler = new BlockerAnimationHandler(); var blockerInstanceHandler = new BlockerInstanceHandler( characterPosition, blockerAnimationHandler ); var worldBlockersController = new WorldBlockersController( sceneHandler, blockerInstanceHandler, characterPosition); return(worldBlockersController); }