Sphere1->SetupAttachment(RootComponent);
is the sphere a child of rootcomponent ot what does this do exactly
PointLight1 = CreateDefaultSubobject<UPointLightComponent>(TEXT("PointLight1"));
whats the TEXT for?
Sphere1 = CreateDefaultSubobject<USphereComponent>(this, TEXT("Sphere1"));
why doo whe need this
here?
if (OtherActor != this)
does this means if we are the player will it enter the if?