public void StartPathCredits() { this.mainCameraControllerState = MainCameraControllerState.Credits; iTween.StopByName(Constants.TWEEN_MAIN_CAMERA); iTween.MoveTo(this.gameObject, iTween.Hash( "name", Constants.TWEEN_MAIN_CAMERA, "path", pathCredits, "time", speedCredits, "easetype", iTween.EaseType.linear, "looptype", iTween.LoopType.loop )); }
public void StartPathWorld() { this.mainCameraControllerState = MainCameraControllerState.World; iTween.StopByName(Constants.TWEEN_MAIN_CAMERA); iTween.MoveTo(this.gameObject, iTween.Hash( "name", Constants.TWEEN_MAIN_CAMERA, "position", locationWorld, "time", speedWorld, "easetype", iTween.EaseType.easeOutCubic, "looptype", iTween.LoopType.none )); }