/** * health- given the name of a player, displays the current oxygen saturation of that player to * all players in the chat window. */ void health(List <string> args) { string name = ""; foreach (string s in args) { name = name + s + " "; } name = name.Substring(0, name.Length - 1); PlayerControllerScript thePlayer = playerManager.getPlayer(name); transform.parent.FindChild("ChatWindow").GetComponent <PhotonView> () .RPC("addMessage", PhotonTargets.All, thePlayer.getHealthScript().oxygenSaturation.ToString()); }