public static Wall CreateWallStand(Vector2 position, Texture2D bulletTexture, string WallType) { var wallSprite = new Sprite(bulletTexture, 23, 195); wallSprite.CreateAnimmtion("idle", (0, 0)); wallSprite.PlayAnimation("idle"); var wallPhysics = new Physics(); wallPhysics.EntityBoundingBoxType = Physics.BoundingBoxType.AABB; wallPhysics.EntityImpluseType = Physics.ImpluseType.NORMAL; wallPhysics.EntityPhysicsType = Physics.PhysicsType.STATICS; var wall = new Wall(); wall.AddComponent(wallSprite); wall.AddComponent(wallPhysics); wall.transform.position = position; wall.Name = WallType; return(wall); }