Hi!
I use the following code to test the animation before writing a bunch of code:
Vector3 _position = new Vector3(326, -30, -1);
GameObject _boat = (GameObject)Instantiate(boatPrefab, _position, Quaternion.identity);
iTween.MoveTo(_boat, iTween.Hash("path", path, "speed", "10", "orienttopath", "true", "easetype", "easeInOutSine", "oncomplete", "complete"));
And got an error:
InvalidCastException: Cannot cast from source type to destination type.
iTween.GenerateMoveToPathTargets () (at Assets/iTween/Plugins/iTween.cs:3580)
iTween.GenerateTargets () (at Assets/iTween/Plugins/iTween.cs:3158)
iTween.TweenStart () (at Assets/iTween/Plugins/iTween.cs:4598)
iTween+c__Iterator8.MoveNext () (at Assets/iTween/Plugins/iTween.cs:6555)
Any help will be appreciated.