I found the way how to do it: in TestCharacter cpp
for (TActorIterator<ATestDoor> ActorItr(GetWorld()); ActorItr; ++ActorItr)
{
ATestDoor* Door = *ActorItr;
if (Door)
{
Door->bIsPressed = !Door->bIsPressed;
Door->KeyPressed();
}
}
but I have question: Is this good way or there is easier way to find reference to the pointer?