コード例 #1
0
        public void InitializeWithDefaultDependencies(ISceneHandler sceneHandler)
        {
            var blockerAnimationHandler = new BlockerAnimationHandler();
            var blockerInstanceHandler  = new BlockerInstanceHandler();

            blockerInstanceHandler.Initialize(
                blockerAnimationHandler
                );

            Initialize(
                sceneHandler,
                blockerInstanceHandler);
        }
コード例 #2
0
        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);
        }