Possible Duplicate:
How to go from the bottom of your script back to the top in game?
function Start () {
iTween.moveTo(gameObject, {"z":-11.5, "time": 2, "transition":"easeInOutExpo", "onComplete":"Rotate1" });
}
function Rotate1(){
iTween.rotateTo(gameObject, {"x":180, "time": 2, "onComplete": "MoveBack"});
}
function MoveBack() {
iTween.moveTo(gameObject, { "z":-4.5, "time": 2, "transition":"easeInOutExpo", "onComplete": "Rotate2"} );
}
function Rotate2(){
iTween.rotateTo(gameObject, {"x":-180, "time": 2});
}
I want it to go from the end of