Plz tell me how to set iTweenpath dynamically. Or it would also be nice if you tell me how to perform sequence of moves using iTween.
**my code: this is not working || Log prompts like: no path with that name (positions) exists!
Vector3[] positions=new Vector3[3];
positions[0]=new Vector3(18.5f,3.8f,1.6f);
positions[1]=new Vector3(18.5f,4.8f,1.6f);
positions[2]=new Vector3(18.5f,4.8f,2.6f);
positions[3]=new Vector3(14.5f,4.8f,2.6f);
iTween.MoveTo(players[1], iTween.Hash("path", iTweenPath.GetPath("positions"),"time", 8.0f));
↧