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);
}
}