You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
HighGroundRoyaleNetcode/Assets/JMO Assets/Cartoon FX/Demo/Assets/CFX_Demo_RotateCamera.cs

19 lines
367 B
C#

using UnityEngine;
using System.Collections;
// Cartoon FX - (c) 2015 Jean Moreno
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);
}
}