Advertisement
Guest User

Untitled

a guest
May 27th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. public class CameraRailMovement : MonoBehaviour
  2. {
  3. public double LookAHead;
  4. public double LookTime;
  5. public float Speed;
  6.  
  7. void Start()
  8. {
  9. iTween.MoveTo(gameObject,
  10. iTween.Hash(
  11. "path", iTweenPath.GetPath("MainCameraWaypoints"),
  12. "easetype", iTween.EaseType.linear,
  13. "time", Speed,
  14. "orientToPath", true,
  15. "lookahead", LookAHead,
  16. "looktime", LookTime)
  17. );
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement