Files
ProjectMD/Assets/Scripts/Player/BehaviorActionData.cs
Dal4segno db5db4b106 코드 리팩토링
재사용성 및 확장성을 고려하여 코드 전반을 리팩토링함
2026-01-21 01:45:15 +09:00

21 lines
561 B
C#

using UnityEngine;
/// <summary>
/// Bridge class that wraps ItemBehavior for use with PlayerActionHandler.
/// This allows the new behavior system to work with the existing action handler.
/// </summary>
[CreateAssetMenu(menuName = "Actions/Behavior Action")]
public class BehaviorActionData : PlayerActionData
{
[HideInInspector]
public ItemBehavior behavior;
public override void ExecuteEffect(GameObject performer, GameObject target)
{
if (behavior != null)
{
behavior.Use(performer, target);
}
}
}