Пример #1
0
    public LevelSetupState(LevelFSM stateMachine, LevelController controller)
    {
        _stateMachine = stateMachine;

        _playerSpawner  = controller.PlayerSpawner;
        _gameSession    = GameSession.Instance;
        _introScreen    = controller.LevelHUD.IntroScreen;
        _playtimeScreen = controller.LevelHUD.PlaytimeScreen;
    }
Пример #2
0
    public LevelActiveState(LevelFSM stateMachine, LevelController levelController)
    {
        _stateMachine = stateMachine;

        _winTrigger       = levelController.WinTrigger;
        _playerSpawner    = levelController.PlayerSpawner;
        _gameSession      = GameSession.Instance;
        _playtimeScreen   = levelController.LevelHUD.PlaytimeScreen;
        _cameraController = levelController.CameraController;

        _menuInput = levelController.MenuInput;
    }