using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class test : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (Input.GetMouseButtonDown(0)) //左键点击
{
iTween.RotateTo(gameObject, new Vector3(0, 0, 45), 2); //该脚本所依附的物体,在局部坐标系小绕Z轴转45
}
}
}
FR:徐海涛(hunk Xu) QQ技术群:386476712