- AvatarOutfitController: 의상 변경 시 NiloToon renderCharacter 토글 + VFX/SFX/컬러 플래시 연출 - TransformEffectPreset ScriptableObject 로 프리셋 공유 - 아바타별 isTransforming 플래그로 동시 변신 지원 - 의상 리스트 순서 변경 (▲▼) 기능 - Piloto Studio 파티클 번들 추가 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
31 lines
443 B
C#
31 lines
443 B
C#
using System.Collections;
|
|
using UnityEngine;
|
|
namespace PilotoStudio
|
|
{
|
|
public class Rotator : MonoBehaviour
|
|
{
|
|
public float x = 0f;
|
|
public float y = 0f;
|
|
public float z = 0f;
|
|
|
|
public bool useGlobal;
|
|
|
|
|
|
|
|
private void Update()
|
|
{
|
|
if (!useGlobal)
|
|
{
|
|
this.transform.Rotate(new Vector3(x, y, z) * Time.deltaTime);
|
|
|
|
}
|
|
else
|
|
{
|
|
this.transform.Rotate(new Vector3(x, y, z) * Time.deltaTime, Space.Self);
|
|
}
|
|
|
|
|
|
}
|
|
|
|
}
|
|
} |