**Disclaimer: as Valryon said, this is not the right way to do that anymore.**


Your Question is not clear, but I think what you want to do is flip the entire GameObject.<br>
To do this, simply do `myTrans.localScale *= -1` when the player changes direction.

You can also do something like this:

    if(horizontalInput <  0)
        myTrans.localScale = new Vector2(1, 1, 1)
    if(horizontalInput >  0)
        myTrans.localScale = new Vector2(-1, -1, -1)
at the end of the Move(float horizontalInput) function.