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(); }
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; }