public void SetButtonRotate(GameObject obj, bool isSelect)
{
if (isSelect)
{
//open
Hashtable tabel = new Hashtable();
tabel.Add("rotation", new Vector3(0, 0, -90));
tabel.Add("time", 0.3f);
tabel.Add("easetype", iTween.EaseType.spring);
iTween.RotateTo(obj, tabel);
}
else
{
//close
iTween.RotateTo(obj, new Vector3(0, 0, 0), 0.1f);
}
}
Itween
最新推荐文章于 2016-12-21 16:06:49 发布