asset integration 50%
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class RotateAround : MonoBehaviour
|
||||
{
|
||||
public Vector3 axis = Vector3.up;
|
||||
public float speed = 10f;
|
||||
public Vector3 center = Vector3.zero;
|
||||
void Update()
|
||||
{
|
||||
transform.RotateAround(transform.position + center, axis, speed * Time.deltaTime);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user