I am a beginner and I understand UE code on a surface level. however, I couldn't improve above that. I don't understand the logic behind UE code. Help

right now a fighting game. 2D and 3D