Im trying to make a topdown shooter in multiplayer but for some reason the line
var point = Camera.main.ScreenToWorldPoint(Input.mousePosition);
Does not seem to work. The error given is :
NullReferenceException: Object reference not set to an instance of an object
PlayerController.Update () (at Assets/Scripts/PlayerController.cs:41)
Im using c# btw. Thanks in advance
Trending Articles
More Pages to Explore .....