public void OnDieCustomReason(PhotonPlayer dead, string customReason) { KillfeedItem item = CreateKillfeedItem(); item.Set(dead, customReason); if (PhotonNetwork.player == dead) { OnDie(); } }
public void OnKill(PhotonPlayer killer, GunInfo gun, PhotonPlayer dead, bool headshot) { KillfeedItem item = CreateKillfeedItem(); item.Set(killer, gun, dead, headshot); if (PhotonNetwork.player == killer) { OnKill(); } else if (PhotonNetwork.player == dead) { OnDie(); } }