EerieVillage/Assets/Scripts/Mechanics/MonsterRandomizer.cs

24 lines
951 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using UnityEngine;
namespace Platformer.Mechanics
{
/// <summary>
/// 몬스터 종류 랜덤 영역 — Animator 정합 유지.
/// PD 지시 (2026-05-10): Animator 영역 (Idle·Run·Hurt·Death state) 영역 → Animator 활성·sprite 수동 영역 X.
/// 6종 random visual 다양성 영역 후속 안건 (Sprite 동적 randomization·6 controller·SubStateMachine).
/// </summary>
public class MonsterRandomizer : MonoBehaviour
{
[Tooltip("6 종 × 4 frame idle sprite (24 sprite·6 group). Awake 시 random group 영역 첫 sprite 영역 영역 영역.")]
public Sprite[] idleFrames;
const int FramesPerMonster = 4;
void Awake()
{
// BT12-Dev 2026-05-10 — Animator 활성 유지 (이전 anim.enabled=false 제거·근본).
// sprite 수동 영역 폐기·Animator Clip (EnemyIdle·EnemyRun·EnemyHurt·EnemyDeath) 영역 정합.
}
}
}