/** * listNames- lists all players currently on the server. */ void listNames() { string names = playerManager.listNames(); transform.parent.FindChild("ChatWindow").GetComponent <PhotonView> () .RPC("addMessage", PhotonTargets.All, names); }