public void CmdSendGameSceneReadyMessage(int readyFactionID) { factionID = readyFactionID; NetworkPlayer_Mirror newPlayer = new NetworkPlayer_Mirror(gameMgr, factionID); //create new instance of the Network Client class for the client that just got the game scene ready HostFactionMgr.AddNetworkClient(newPlayer); //register the client on the ready clients' list on the server/host's component HostFactionMgr.OnClientGameSceneReady(); //inform the server/host that one of the player's scene is now ready }
public void CmdSendInput(NetworkInput input) //server/host rec { HostFactionMgr.AddInput(input); //add the received input }