// When a player dies, show a message saying "Player killed player" void SendKillMessage(int attackerViewID) { if (GetComponent <PhotonView> ().isMine) { PhotonView pv = PhotonView.Find(attackerViewID); if (pv) { string murderer = pv.owner.NickName; string victim = GetComponent <PhotonView> ().owner.NickName; if (Util.IsRedTeam(pv.gameObject)) { tm.AddRedKillMessage(murderer, victim); } else { tm.AddBlueKillMessage(murderer, victim); } } } }