불필요한 Debug.Log 및 Debug.LogWarning 호출 제거로 프로덕션 로그 정리 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
using UnityEngine;
|
|
using Colosseum.Abnormalities;
|
|
|
|
namespace Colosseum.Skills.Effects
|
|
{
|
|
/// <summary>
|
|
/// 이상 상태 효과
|
|
/// AbnormalityManager를 통해 대상에게 이상 상태를 적용합니다.
|
|
/// </summary>
|
|
[CreateAssetMenu(fileName = "AbnormalityEffect", menuName = "Colosseum/Skills/Effects/Abnormality")]
|
|
public class AbnormalityEffect : SkillEffect
|
|
{
|
|
[Header("Abnormality")]
|
|
[Tooltip("적용할 이상 상태 데이터")]
|
|
[SerializeField] private AbnormalityData abnormalityData;
|
|
|
|
protected override void ApplyEffect(GameObject caster, GameObject target)
|
|
{
|
|
if (target == null) return;
|
|
|
|
if (abnormalityData == null) return;
|
|
|
|
var abnormalityManager = target.GetComponent<AbnormalityManager>();
|
|
if (abnormalityManager == null) return;
|
|
|
|
abnormalityManager.ApplyAbnormality(abnormalityData, caster);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 이상 상태 데이터 설정 (런타임용)
|
|
/// </summary>
|
|
public void SetAbnormalityData(AbnormalityData data)
|
|
{
|
|
abnormalityData = data;
|
|
}
|
|
}
|
|
}
|