unity face direction of movement 2d code example Example: unity face direction of movement transform.rotation = Quaternion.LookRotation(dir);