예제 #1
0
        public void OnDieCustomReason(PhotonPlayer dead, string customReason)
        {
            KillfeedItem item = CreateKillfeedItem();

            item.Set(dead, customReason);

            if (PhotonNetwork.player == dead)
            {
                OnDie();
            }
        }
예제 #2
0
        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();
            }
        }