Adding components in C++ breaks project

Hello, Torabi

Please note that in Unreal Engine 4 you should declare properties as pointers.
Thus, your code should look something like this:

UParticleSystemComponent* particleSystem;

Hope this helped!

Cheers!