http://u3d.as/content/pixelplacement/i-tween/1s9 download

http://itween.pixelplacement.com/documentation.php#MoveTo api


  iTween.MoveTo(gameObject, iTween.Hash("x", 5, "time", 5, "easetype", iTween.EaseType.easeInBack)) ;

  添加的物体(gameObject)以某一动作(easetype)移动到某一位置(hash(x, y, z)||Vector3)

  void OnMouseEnter(){} 当鼠标进入该物体时调用

     将物体move在鼠标移动到当前物体时以easeInBack的方式移动到当前物体上

    public GameObject move ;
    void OnMouseEnter(){
        iTween.MoveTo(move, iTween.Hash("x", transform.position.x, "y", transform.position.y, "z", transform.position.z, "time", 5, "easetype", 
      iTween.EaseType.easeInBack)) ; }

 

posted on 2013-08-22 13:48  追逐.  阅读(865)  评论(0编辑  收藏  举报