public LevelSetupState(LevelFSM stateMachine, LevelController controller) { _stateMachine = stateMachine; _playerSpawner = controller.PlayerSpawner; _gameSession = GameSession.Instance; _introScreen = controller.LevelHUD.IntroScreen; _playtimeScreen = controller.LevelHUD.PlaytimeScreen; }
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; }