Component List 개발 중
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user