using UnityEngine;

namespace mgaia.Utils
{
    /// <summary>
    /// Container de scale para o transform da Unity
    /// </summary>
    /// <owner>Victor</owner>
    public class TransformScaleContainer : IScaleContainer
    {
        private Transform mTransform;

        public TransformScaleContainer(Transform transform)
        {
            mTransform = transform;
        }

        /// <summary>
        /// Escala do transform
        /// </summary>
        public Vector3 Scale
        {
            get
            {
                return mTransform.localScale;
            }
            set
            {
                mTransform.localScale = value;
            }
        }
    }
}