Files
WildRoot/Assets/DownAssets/JMO Assets/Cartoon FX Remaster/Demo Assets/CFXR_Demo_Rotate.cs
T
jongjae0305 d8aabbd428 [Update] 에셋 및 애니메이션
1. 캐릭터, 배경 에셋 변경
2. 캐릭터 애니메이션 적용
3. 방향키에 따른 캐릭터 회전 적용
2026-04-15 12:59:37 +09:00

21 lines
598 B
C#

//--------------------------------------------------------------------------------------------------------------------------------
// Cartoon FX
// (c) 2012-2025 Jean Moreno
//--------------------------------------------------------------------------------------------------------------------------------
using UnityEngine;
namespace CartoonFX
{
public class CFXR_Demo_Rotate : MonoBehaviour
{
public Vector3 axis = new Vector3(0,1,0);
public Vector3 center;
public float speed = 1.0f;
void Update()
{
this.transform.RotateAround(center, axis, speed * Time.deltaTime);
}
}
}