- iTween.MoveTo(this.gameObject, new Vector3(3, 3, 3), 5f); 作用物体是this.gameObject,移动到vector3,时间5s。
public class helloitween : MonoBehaviour { Hashtable lht = new Hashtable();//新建一个hash表 // Use this for initialization void Start () { lht.Add("x", 3); lht.Add("time", 2);//时间 lht.Add("delay", 1);//延时 lht.Add("looptype", iTween.LoopType.pingPong);//循环 iTween.MoveTo(this.gameObject,lht); } // Update is called once per frame void Update () { } }
unity里ITweenc插件学习
最新推荐文章于 2020-04-14 17:55:38 发布