public override void Activate()
        {
            base.Activate();

            _startSequenceTimer.Reset();

            ControllerPool.SetControllersToGameplayMode();

            Communication.SubSceneCommunicator playerOneCommunicator = new Communication.SubSceneCommunicator();
            Communication.SubSceneCommunicator playerTwoCommunicator = new Communication.SubSceneCommunicator();

            playerOneCommunicator.OtherPlayerDataSource = playerTwoCommunicator;
            playerTwoCommunicator.OtherPlayerDataSource = playerOneCommunicator;

            _playerOneGameplayContainer.InputProcessor      = ControllerPool.Controllers.PlayerOne;
            _playerOneGameplayContainer.Communicator        = playerOneCommunicator;
            _playerOneGameplayContainer.PlayerSkinSlotIndex = NextSceneParameters.Get <int>(Player_One_Avatar_Skin_Parameter);
            _playerOneGameplayContainer.BufferArea          = CreateDisplayArea(0);
            _playerOneGameplayContainer.Activate();

            _playerTwoGameplayContainer.InputProcessor      = ControllerPool.Controllers.PlayerTwo;
            _playerTwoGameplayContainer.Communicator        = playerTwoCommunicator;
            _playerTwoGameplayContainer.PlayerSkinSlotIndex = NextSceneParameters.Get <int>(Player_Two_Avatar_Skin_Parameter);
            _playerTwoGameplayContainer.BufferArea          = CreateDisplayArea(1);
            _playerTwoGameplayContainer.Activate();

            _dialogContainer.BufferArea = ScaledBufferFrame;
            _dialogContainer.Activate();
        }
Ejemplo n.º 2
0
        public override void Activate()
        {
            _gameplayContainer.BufferArea            = CreateDisplayArea();
            _gameplayContainer.CameraOverspillMargin = Vector2.Zero;
            _gameplayContainer.SafeAreaOuterLimits   = new Rectangle(0, 0, Definitions.Back_Buffer_Width, Definitions.Back_Buffer_Height);

            ControllerPool.SetControllersToGameplayMode();

            base.Activate();
            _gameplayContainer.Activate();
        }
Ejemplo n.º 3
0
        protected override void Dismiss()
        {
            ControllerPool.SetControllersToGameplayMode();

            base.Dismiss();
        }