public static void Init(Game1 game) { foreach (State value in Enum.GetValues(typeof(State))) { gameStates[value] = new GameState(); } prefabrications = new Dictionary <string, Prefabrication>(); exit = new Action(game.Exit); GameEvent += game.GameEventHandler; state = State.Menu; currentState = gameStates[state]; playingTime = new GameTime(); collisionManager = new CollisionManager(); collisionManager.AddLayer("PlayerProjectile", "Enemy"); collisionManager.AddLayer("VerticalBoundary", "Player"); collisionManager.AddLayer("HorizantalBoundary", "Player"); collisionManager.AddLayer("PlayerProjectile", "ProjectileBoundary"); collisionManager.AddLayer("Player", "EnemyProjectile"); playingTimeScale = 1; }