您的位置:首页 > 其它

Itween

2016-04-08 14:09 204 查看
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);
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: