//使用GameObject.Find()的方法找到物体并让物体旋转
Vector3 cube = GameObject.Find("Cube").transform.position;
Transform cube1 = GameObject.Find("Cube").transform;
cube1.Rotate(new Vector3(0, 30.0f / 60.0f, 0));
unity 使用GameObject.Find()的方法找到物体
原文:http://www.cnblogs.com/lzl0823/p/6294437.html