C# Camera.main.ScreenPointToRay on android

I need to convert this from Javacript to C#, but it doesn’t seem to work…

var ray = Camera.main.ScreenPointToRay(Input.mousePosition);

if (Input.GetMouseButtonDown (0))
{
	if (Physics.Raycast (ray, hit, 100)) 
	{
		if (! selectedCard)
		{
			DoSomething();
		}
		
	}
}

Works perfectly on both Windows AND Android.

But when i convert this to C#, it only works on Windows… Android Input’s are not recognized…

Why is that? What do i have to do to get this working?

    ray = Camera.main.ScreenPointToRay (Input.mousePosition);
		if (Input.GetMouseButtonDown (0))
		{
			if (Physics.Raycast (ray, out hit, 100)) 
			{
				if (! selectedCard){
				     DoSomething();
				
				}
			}
		}

Ok… My Fault…

I had two scripts with the same name (.cs and .js) because i’ve copied it once to rewrite it in C#…

When compiling for android, i’ve got several warnings with
Unable to properly serialize object because of extra field …

I’ve removed the duplicate script and everything works now… stupid me -.-