I use C# to develop my game in Unity iPhone, first I use iTween(C# version) to Deal with animation of GUI,but It’s not work,The wrong message is
Assets/Plugins/iTween.cs(308,20): error CS1041: Identifier expected
I find the reason of wrong message is
public List<Vector3> beziers
in iTween.cs, I cann’t solve it, so I use iTween.js in my programe,but I meet new question.my code is
using UnityEngine;
using System.Collections;
public class UITest : MonoBehaviour
{
void Awake()
{
}
// Use this for initialization
void Start ()
{
iTween.moveTo(gameObject, {"x":0.5, "time":0.5, "delay":1.5});
}
// Update is called once per frame
void Update ()
{
}
}
But it’s wrong,the wrong message is:
Assets/CSharp/UITest.cs(24,43): error CS1026: Expected ',' or ')'
so I change code to this:
using UnityEngine;
using System.Collections;
public class UITest : MonoBehaviour
{
void Awake()
{
}
// Use this for initialization
void Start ()
{
Hashtable ht = new Hashtable();
ht.Add("x", 0.5);
ht.Add("time", 0.5);
ht.Add("delay", 1.5);
iTween.moveTo(gameObject, ht);
}
// Update is called once per frame
void Update ()
{
}
}
The wrong message is disappear,But It’s has new wrong message when I install my program into iPhone. The wrong message is:
2010-07-14 03:12:56.741 AcientHunter[498:207] -> registered unity classes
2010-07-14 03:12:56.877 AcientHunter[498:207] -> registered mono modules
-> applicationDidFinishLaunching()
Failed to load AOT module '1089df34bcba0441c95e338b6f22270a' while running in aot-only mode because a dependency cannot be found or it is out of date.
My C# is in Asset/CSharp,iTween(JS version) is in Asset/Plugins. Help!!!
I have crazy!!!
PS:I use Unity iPhone 1.5[/code]