Paste it into a C# script named FollowCursor.cs, and add it to a GameObject in your scene (you may want to also attach a sprite so that you can visualise it while testing).
Then in your 2D GameCamera, uncheck Target is Player? and assign this new GameObject as the new Target field that appears beneath.
Comments
The following code will cause a GameObject to follow your cursor in 2D space:
http://pasteall.org/944549/csharp
Paste it into a C# script named FollowCursor.cs, and add it to a GameObject in your scene (you may want to also attach a sprite so that you can visualise it while testing).
Then in your 2D GameCamera, uncheck Target is Player? and assign this new GameObject as the new Target field that appears beneath.
I will try to do what you say