CObj* CProgressRateZone::Create(CDevice* _pDevice)
{
	CObj* pObj = new CProgressRateZone(_pDevice);
	if (FAILED(pObj->Init()))
		::Safe_Delete(pObj);

	return pObj;
}
Beispiel #2
0
CObj* CAmmo::Create(CDevice* _pDevice)
{
	CObj* pObj = new CAmmo(_pDevice);
	if (FAILED(pObj->Init()))
		::Safe_Delete(pObj);

	return pObj;
}
Beispiel #3
0
CObj* CSkyBox::Create(CDevice* _pDevice, const wstring& _wstrTextureKey)
{
	CObj* pObj = new CSkyBox(_pDevice);
	if (FAILED(pObj->Init()))
		::Safe_Delete(pObj);

	((CSkyBox*)pObj)->AddComponent(_wstrTextureKey);

	return pObj;
}