void SystemManager::CreateInstance(uint16 maxEntityCount, uint8 maxPhaseCount)
{
	if(GetSingletonPtr() == NULL)
		new SystemManager(maxEntityCount, maxPhaseCount);
}
 static T* Instance()
 {
     return GetSingletonPtr();
 }
 static T& GetSingletonRef()
 {
     return *GetSingletonPtr();
 }
		//--------------------------------------------------------
		/// Get Singleton
		//--------------------------------------------------------
		JavaInterfaceManager& JavaInterfaceManager::GetSingleton()
		{
			return *GetSingletonPtr();
		}
Exemple #5
0
CController& CController::GetSingleton ( )
{
    return *GetSingletonPtr ( );
}
void ActorFactory::CreateInstance()
{
	if(GetSingletonPtr() == NULL)
		new ActorFactory();
}