Hi All,
I’m trying ex2d for my 2d game with Unity via exSpriteAnimation class.
I’ve written this little code inside Update method:
if (Input.GetButton(“Horizontal”))
{
exSpriteAnimation exAnim = GetComponent();
exAnim.Play(“ex2dAnim”);
}
The thing is when I press the D key notthing happens only when I realse it the animation starts. Have u came across with this kind of behaviour?
Do u know the solution?
Thank u in advance