Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullReferenceException(muzzleflash) #30

Open
sanjyot-dahale opened this issue Mar 7, 2019 · 0 comments
Open

NullReferenceException(muzzleflash) #30

sanjyot-dahale opened this issue Mar 7, 2019 · 0 comments

Comments

@sanjyot-dahale
Copy link

The error is as follows:

NullReferenceException: Object reference not set to an instance of an object
PlayerShoot.RpcDoShootEffect () (at Assets/Scripts/PlayerShoot.cs:74)

Now the problem is that this error does not arise till the 2nd player joins the lobby. Once the second player joins the room, the 1st player(host of the room) starts getting this error.

So if I launch (host) the room from the Build and join the room from Unity itself, the Unity Player can do everything, but once he starts shooting, you cannot see his shooting in the Build game and the Build Player also cannot shoot and the NullReference error starts popping up. Then if the Unity Player kills the Build Player by shooting him, he only dies in the Unity Game and nothing happens in the Build Game.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant