Files
ihob/Assets/ProCamera2D/Examples/TopDownShooter/Scripts/ObjectRotate.cs

22 lines
412 B
C#
Raw Normal View History

2026-02-21 17:04:05 -08:00
using UnityEngine;
using System.Collections;
namespace Com.LuisPedroFonseca.ProCamera2D.TopDownShooter
{
public class ObjectRotate : MonoBehaviour
{
public Vector3 Rotation = Vector3.one;
Transform _transform;
void Awake()
{
_transform = transform;
}
void LateUpdate()
{
_transform.Rotate(Rotation);
}
}
}