So that being the case how would i call an “ITweenPath?”
For example, i can easily call ,synch, sequence and ,segue any iTween event/animation, function, or GUI function by simply saying;
<>
var target :GameObject;
function OnMouseDown () {
iTween.MoveTo(target,{“x”:-631.5,“time”:0.2,“delay”:0.2});
}
-Where the TARGET is called from clicking a “different” game object with the above code attached to it
I get a perfect score every time. (makes me feel pretty cool too, but mostly thankful for this lib.)
So my question is, how would i call an “ITweenPath” on a “TARGET” similar to the above snippet.
In your demonstration you didn’t show how to call an iTweenPath “from another game object.”
I have been toying with your C# basic call, but I can’t get it to “Target” a specific game object after being called from another game object.
I flip through my other C# scripts to get some sort of example and I just don’t have any, as the iTween hash system is very unique(and for good reason).
To sum things up; I was simply wandering if there was a “Java” way of saying,
<>
void Start () {
iTween.MoveTo(gameObject,iTween.Hash(“path”,iTweenPath.GetPath(“BasicPath1”),“time”, 5, “easetype”, iTween.EaseType.easeInOutSine));
}
??
This script works wonderfully as a C# script and when I leave it as a C# script, but when I copy/paste directly into a JavaScript code file
as FizixMan suggested, all I get is “unknown identifier” ,“ItweenPath” from Unity.
Thanks for your ears guys.
~K