Hello People.
I am using iTween to make a path for my camera to follow.
All good, but there are times when I want to have a switch (mouseUp an object)
that will make the camera move to a new path (path b)...
Scripting reference says : MoveTo(GameObject target, Vector3 position, float time)
but I am putting this script on another object, not the Camera.
using UnityEngine;
using System.Collections;
public class iTweenMoveTo : MonoBehaviour {
public GameObject myPath;
void OnMouseUp (){
iTween.MoveTo(Camera, iTween.Hash("myPath", iTweenPath, "time", 1));
}
}
I'm just screwed up on the C#...Any one have a clue?
Thanks
~be
↧