• Sets the horizontal and flipped state of the object. Mutate the object.

    Parameters

    • obj: GameObject

      game object itself

    • x: boolean

      to flip in the horizontal state

    • y: boolean

      to flip in the vertical state

    Returns GameObject | undefined

    game object itself