public void OtherPlayerDie(MsgSCPlayerDie msg) { if (playerArray.ContainsKey(msg.userID) == false) { return; } GameObject obj = this.playerArray[msg.userID]; OtherPlayerController opc = obj.GetComponent <OtherPlayerController>(); opc.Death(); }