Component List 개발 중

This commit is contained in:
logonkhi
2025-08-08 18:33:29 +09:00
parent 3297a5d1f3
commit 165c3a709f
60 changed files with 7809 additions and 3072 deletions

View File

@@ -133,7 +133,7 @@ namespace UVC.Factory.Component
{
// 객체의 이름을 GameObject의 이름으로 설정합니다.
gameObject.name = info.Name;
FactoryObjectManager.Instance.RegisterFactoryObject(this);
RegisterFactoryObject();
}
}
}
@@ -169,6 +169,21 @@ namespace UVC.Factory.Component
}
}
/// <summary>
/// FactoryObject를 FactoryObjectManager에 등록합니다.
/// </summary>
public void RegisterFactoryObject()
{
if (Info != null) FactoryObjectManager.Instance.RegisterFactoryObject(this);
}
/// <summary>
/// FactoryObject를 FactoryObjectManager에서 등록 해제합니다.
/// </summary>
public void UnregisterFactoryObject()
{
if(Info != null) FactoryObjectManager.Instance.UnregisterFactoryObject(Info);
}
protected virtual void OnDestroy()
{
@@ -178,7 +193,7 @@ namespace UVC.Factory.Component
modelObject.OnPointerEnterHandler -= OnPointerEnter;
modelObject.OnPointerExitHandler -= OnPointerExit;
}
FactoryObjectManager.Instance.UnregisterFactoryObject(Info!);
UnregisterFactoryObject();
}