19 lines
368 B
C#
19 lines
368 B
C#
namespace Core
|
|
{
|
|
public class ComponentBase
|
|
{
|
|
public virtual void Awake() { }
|
|
public virtual void Start() { }
|
|
public virtual void Update() { }
|
|
public virtual void OnDestroy() { }
|
|
|
|
//소멸
|
|
public void Destroy()
|
|
{
|
|
OnDestroy();
|
|
|
|
//객체 삭제 로직
|
|
}
|
|
}
|
|
}
|