public GameStateManager( CameraService cameraService, IEnumerable <IGameState> gameStates, TextDrawingService textDrawingService, GlobalGameWebLayer globalGameWebLayer) { _cameraService = cameraService; _textDrawingService = textDrawingService; _gameStates = new Dictionary <GameStateType, IGameState>(); _globalGameWebLayer = globalGameWebLayer; _globalGameWebLayer.Activate(); foreach (var gsm in gameStates) { _gameStates.Add(gsm.StateType, gsm); } SetState(GameStateType.Login); }
public virtual void Activate() { _globalGameWebLayer.Activate(); }