Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. if (cursor.position.x < transform.position.x && cc.m_facingRight == true)
  2. {
  3. cc.FlipLeft ();
  4. }
  5. else if (cursor.position.x > transform.position.x && cc.m_facingRight == false)
  6. {
  7. cc.FlipRight ();
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement