public class otherself : MonoBehaviour
{
// 这个脚本是用来让某个物体围绕另一个物体旋转
public GameObject MyTarget;
void Start()
{
}
// Update is called once per frame
void Update()
{
this.transform.RotateAround(MyTarget.transform.position, new Vector3(0, 10, 0), 20 * Time.deltaTime);
}
}