Animation is overriding sprite
Hey folks! What's up?
Any awesome person to help me with Unity 2d Animation?
So..
I have two animations: Animation A: with spritesheet of Sprite A; Animation B: without spritesheet and it changes transform scale values;
Animation A match with GameObject with Sprite A. Animation A match with GameObject with Sprite A, B, C, D e E.
I got a prefab that keep sprite and animation infos;
During runtime i'm changing the sprites and animations at same time, since these are related.
Exemple:
But, when this change happens: When the last gameObject has the sprite and animation A, and the next gameObject is B, this stays with sprite A, intead of changing sprite to B.
I think this is happening because GameObject B's animation does not have any sprite in its animation.