private void CreateGun() { MouseState mouseState = Mouse.GetState(); Vector2 position = new Vector2(mouseState.X, mouseState.Y); mBuildingBlock = new Gun(mWorld, position, mPlayer); }
private void CreateBox() { Vector2 size = new Vector2(5.9f, 2.9f); MouseState mouseState = Mouse.GetState(); Vector2 position = new Vector2(mouseState.X, mouseState.Y); mBuildingBlock = new Box(mWorld, position, size, mTexture, true, mPlayer, mHealth); }