Get Direction relative to rotation

Hello, i have a question: How can i get the direction relative to his rotation?
i tried with :
if (RB_Player.velocity.x > 0) if (RB_Player.velocity.x < 0)
but when i rotate the object, for example, of 90°, the left side correspond to forward.
Any solution?

UP…