Exemple #1
0
        public void Configure(SpriteTemplate sprite, Element element = Element.NONE)
        {
            int i = (int)sprite;

            ((AtlasTexture)Texture).Region = new Rect2((i % 4) * SIZE, (i / 4) * SIZE, DIM);
            Modulate = ElementUtils.GetColor(element);
        }