RotateAround.cs 306 B

123456789101112131415
  1. using UnityEngine;
  2. using System.Collections;
  3. public class RotateAround : MonoBehaviour {
  4. public Transform rot_center;
  5. // Use this for initialization
  6. void Start () {
  7. }
  8. // Update is called once per frame
  9. void Update () {
  10. this.transform.RotateAround(rot_center.position,Vector3.up,.25f);
  11. }
  12. }