Hi
how are you moving the player?
and how are you flipping the player?
For example if you use scale, then get the x scale and check if greater or less than 0.
if you use rotation get the rotation and compare if 0 or not
if you use sprite flip then get that value and check the bool.