How to make object fallow the mouse ??

Hi guys i would like to know how to make a cube fallow my mouse. I only want it to fallow the up and down movements nothing else, something like in FPS games like when you look up the Gun and arm fallow something like that :)

thanks in advance :)

1 Answer

1

First of all u have to create new prefab including Cube and FpsMovement from standard assets. Cube must be child of FpsMovement. that's all