I’am making a 2d platform game , am using enum to make animations happen (run,idle,jump,fall);
my problem is the player is not coming to idle after touching the ground collider if i hold both arrow key and jump(space) key ,he is coming back to idle if i unhold the arrow key ,or by just press jump key without pressing any of arrow keys
below is the flow i have right now, and iam also using istouchinglayers() method to make him play idle animation while on ground after falling
any idea why this will happen? any help is greatly appreciated, thank you.