Beispiel #1
0
    public void AddKillToFeed(string killer, string victim, Sprite weaponIcon, Sprite headshotIcon, bool isHeadshot)
    {
        KillFeedListing listing = listings.Dequeue();

        if (!weaponIcon)
        {
            weaponIcon = defaultWeaponIconInFeed;
        }
        if (!headshotIcon)
        {
            headshotIcon = defaultHeadshotIconInFeed;
        }

        listing.SetKill(killer, victim, weaponIcon, headshotIcon, isHeadshot);
        listings.Enqueue(listing);
    }