Esempio n. 1
0
        public override void Start()
        {
            base.Start();

            animator = GetComponent <Animator>();

            SpriteColorReplacement scr = GetComponent <SpriteColorReplacement>();

            scr.replacedColors = new List <SpriteColorReplacement.ReplacedColor>();
            scr.replacedColors.Add(new SpriteColorReplacement.ReplacedColor(baseColor, base.color));
            scr.Apply();
        }
Esempio n. 2
0
        public override void Start()
        {
            base.Start();
            _animator        = GetComponent <Animator>();
            originalPosition = transform.position;

            SpriteColorReplacement scr = GetComponent <SpriteColorReplacement>();

            scr.replacedColors = new List <SpriteColorReplacement.ReplacedColor>();
            scr.replacedColors.Add(new SpriteColorReplacement.ReplacedColor(baseColor, base.color));
            scr.Apply();
            //GetComponent<SpriteRenderer>().color = base.color;
        }