void OnMouseEnter()//放大物体
{
transform.localScale += new Vector3(0.01f,0.01f,0.01f);
}
void OnMouseOver()//旋转物体
{
transform.Rotate (0,20*Time.deltaTime,0);
}
void OnMouseExit()//缩小还原物体
{
transform.localScale -= new Vector3(0.01f,0.01f,0.01f);
}
{
transform.localScale += new Vector3(0.01f,0.01f,0.01f);
}
void OnMouseOver()//旋转物体
{
transform.Rotate (0,20*Time.deltaTime,0);
}
void OnMouseExit()//缩小还原物体
{
transform.localScale -= new Vector3(0.01f,0.01f,0.01f);
}