/// <summary> /// Announces that the local player was killed /// </summary> /// <param name="killerActorNumber"></param> /// <param name="info"></param> public void ReportFall(int killedNumber, int killerNumber) { PlayerIdentity deadPlayer = PlayerIdentity.GetPlayer(killedNumber); PlayerIdentity killer = PlayerIdentity.GetPlayer(killerNumber); if (killer == null) // if they fell without being attacked { SetKillFeed($"{deadPlayer.NickName} is gone."); } else { //todo support bot kill incrementation later //increment kill on killer if (PhotonNetwork.LocalPlayer.ActorNumber == killerNumber) //if local player is killer { PlayerIdentity.localPlayerInstance.Kills++; } //tell people who died via killfeed SetKillFeed($"{killer.NickName} ended {deadPlayer.NickName}."); } }