I'm getting StackOverFlowException

Hi. I’m trying to make at first person shooter, but I’m getting trouble. I get a stackoverflowexception and for now it’s pointing at main camera. I’ll include links to my files. (it’s only two)


You have a method that is calling itself, this will do so infinitely, until you overflow the stack - I bolded the offending lines. Server_PlayerJoinRequest, will loop back to itself forever.

void Server_PlayerJoinRequest(string playername, NetworkPlayer view)
    networkView.RPC("Server_PlayerJoinRequest", RPCMode.All, playername, view);