gameEngine/gameEngine/Observers/ColliderObserver.cpp
//take the function we got, and pass the two sprites we also got when constructed
take the function we got, and pass the two sprites we also got when constructed
take the function we got and pass the two sprites we also got when constructed
void ColliderObserver::Notify()
{
	if (funcCC_)
	{
		this->funcCC_(oneC, twoC);
	}
	else if (funcSC_)
	{
		this->funcSC_(oneS, twoC);
	}
	else
	{
		this->funcSS_(oneS, twoS);
	}
}
void ColliderObserver :: Notify ( ) { if ( funcCC_ ) { this -> funcCC_ ( oneC , twoC ) ; } else if ( funcSC_ ) { this -> funcSC_ ( oneS , twoC ) ; } else { this -> funcSS_ ( oneS , twoS ) ; } }
take the function we got, and pass the two sprites we also got when constructed
take the function we got and pass the two sprites we also got when constructed