17 lines
328 B
C#
17 lines
328 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class CFX_Demo_RotateCamera : MonoBehaviour
|
|
{
|
|
static public bool rotating = true;
|
|
|
|
public float speed = 30.0f;
|
|
public Transform rotationCenter;
|
|
|
|
void Update ()
|
|
{
|
|
if(rotating)
|
|
transform.RotateAround(rotationCenter.position, Vector3.up, speed*Time.deltaTime);
|
|
}
|
|
}
|