using UnityEngine;
using mgaia.Utils;

namespace mgaia.tk2d
{
    /// <summary>
    /// Container de cor de uma sprite
    /// </summary>
    /// <owner>Victor</owner>
    public class SpriteColorContainer : IColorContainer
    {
        private tk2dBaseSprite mSprite;

        public SpriteColorContainer(tk2dBaseSprite sprite)
        {
            mSprite = sprite;
        }

        /// <summary>
        /// Cor da sprite
        /// </summary>
        public Color Color
        {
            get
            {
                return mSprite.color;
            }
            set
            {
                mSprite.color = value;
            }
        }
    }
}