I try to edit it
Class 'APickupItem' must inherit UObject or a UObject-derived class prototip1 ...\prototip1Character.h 1
and there’re changes in the code
UCLASS()
class APickupItem; // forward declare the APickupItem class,
// since it will be "mentioned" in a member function
decl below
class Aprototip1Character : public ACharacter
Unfortunately, I don’t understand how to make inheritance