public void Initialize_spawns_a_paddle_at_slot_spawn_position() { var paddle = Stub <IPaddle>(); var playerSlot = Stub <IPlayerSlot>(); PaddleFactory.Setup(p => p.Create(playerSlot.Object)).Returns(paddle.Object); var player = Stub <IPlayer>(); player.Setup(p => p.Slot).Returns(playerSlot.Object); player.SetupSet(p => p.Paddle = paddle.Object); PlayerInitializer.Initialize(player.Object); }
public static void InitializeSystemWorkflow() { GameVariables.EntityManager = World.DefaultGameObjectInjectionWorld.EntityManager; //GameVariables.PlayerVars.Default.PlayerAudioSource = MonoGameVariables.instance.playerAudioSource; //Game Initializer? UIManager.Initialize(); PlayerInitializer.Initialize(); WeaponInitializer.Initialize(); MapEvents.Initialize(); InitializeSystems(); }