コード例 #1
0
ファイル: Block.cs プロジェクト: EttBraNamn/GymnasieArbete
        public void Draw(SpriteBatch spriteBatch)
        {
            Texture2D texture = Textures.Block(type);

            if (texture != null)
            {
                spriteBatch.Draw(texture, Position(), color);
            }
        }