Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (cursor.position.x < transform.position.x && cc.m_facingRight == true)
- {
- cc.FlipLeft ();
- }
- else if (cursor.position.x > transform.position.x && cc.m_facingRight == false)
- {
- cc.FlipRight ();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement