업그레이드 데이터 입력 로직 및 기능 추가
캐릭터 스탯을 PlayerStats 컴포넌트에서 모아서 관리하도록 변경 코드에서도 마찬가지
This commit is contained in:
23
Assets/Scripts/Editor/UpgradePrefabSetup.cs
Normal file
23
Assets/Scripts/Editor/UpgradePrefabSetup.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Northbound.Data;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Northbound.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Upgrade 타입은 프리팹이 필요 없으므로 빈 구현
|
||||
/// </summary>
|
||||
public class UpgradePrefabSetup : IPrefabSetup
|
||||
{
|
||||
public string GetTemplateName()
|
||||
{
|
||||
return ""; // 템플릿 필요 없음
|
||||
}
|
||||
|
||||
public void SetupPrefab(GameObject prefab, ScriptableObject data)
|
||||
{
|
||||
// Upgrade는 프리팹이 필요 없음
|
||||
Debug.LogWarning($"[UpgradePrefabSetup] Upgrade 타입은 프리팹이 필요하지 않습니다.");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user