Player object disappears in camera view after "void Flip" to make player obect face the right direction

Hello,
I’m trying to make an animated player object to “flip” around Y axes in a 2d project so that it always faces the direction it’s taveliing in. I’ve followed somebody’s code and player object started turning around while swithcing directions of movement but in the game view when i move it backwards it disappears, but is still there, moving in view scene window.

Here’s the code:
i’ve also set a variable “private bool facingRight = true;” under public class.

I’ve figured it out. Player Object’s Z was at negative parameteres, i’ve set Z to 1.