Source/HobbitMage/MagicMissile.cpp
void AMagicMissile::BeginPlay()
{
	Super::BeginPlay();
	//SphereCollision->OnComponentBeginOverlap.AddDynamic(this, &AMagicMissile::BeginSphereOverlap);
	SphereCollision->OnComponentHit.AddDynamic(this, &AMagicMissile::SphereHit);
}
// Called when the game starts or when spawned
Called when the game starts or when spawned
Called when the game starts or when spawned
void AMagicMissile::BeginPlay()
{
	Super::BeginPlay();
	SphereCollision->OnComponentHit.AddDynamic(this, &AMagicMissile::SphereHit);
}
void AMagicMissile :: BeginPlay ( ) { Super :: BeginPlay ( ) ; SphereCollision -> OnComponentHit . AddDynamic ( this , & AMagicMissile :: SphereHit ) ; }
Called when the game starts or when spawned
Called when the game starts or when spawned
//SphereCollision->OnComponentBeginOverlap.AddDynamic(this, &AMagicMissile::BeginSphereOverlap);