DI 추가

This commit is contained in:
logonkhi
2025-12-15 20:17:38 +09:00
parent ab86affa32
commit 0df2f0d8da
131 changed files with 19661 additions and 554 deletions

View File

@@ -0,0 +1,21 @@
using UnityEngine;
using UVC.Core;
namespace Sample
{
/// <summary>
/// Type B: MonoBehaviour - Scene 라이프사이클
/// 씬 전환 시 자동 파괴됨
/// </summary>
public class InjectorSampleEnemySpawner : MonoBehaviour, IEnemySpawner
{
[Inject] private ILogService _logger;
public int EnemyCount { get; private set; }
public void SpawnEnemy(Vector3 position)
{
EnemyCount++;
_logger?.Log($"Enemy spawned at {position}. Total: {EnemyCount}");
}
}
}