13 lines
318 B
C#
13 lines
318 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class RotationOffset : MonoBehaviour
|
|
{
|
|
private float m_Speed = 2.5f;
|
|
private void FixedUpdate()
|
|
{
|
|
transform.RotateAround(transform.parent.transform.position, Vector3.up, m_Speed * Time.fixedDeltaTime);
|
|
}
|
|
}
|