public void AddKillText(int killer, int victim, string killtype, int killerscore)
    {
        if (guiBadgeManager == null)
        {
            guiBadgeManager = (GUIKillBadgeManager)GameObject.FindObjectOfType(typeof(GUIKillBadgeManager));
        }

        if (UnitZ.NetworkGameplay == null || UnitZ.NetworkGameplay.playersManager == null)
        {
            return;
        }

        PlayersManager playersManager = UnitZ.NetworkGameplay.playersManager;

        if (playersManager != null)
        {
            PlayerData killerData = playersManager.GetPlayerData(killer);
            PlayerData victimData = playersManager.GetPlayerData(victim);
            string     killername = "N/A";
            string     victimname = "N/A";

            if (killer == -1)
            {
                killerData.Name = "Bot";
            }

            if (victim == -1)
            {
                victimData.Name = "Bot";
            }

            if (killerData.Name != "")
            {
                killername = killerData.Name;
            }
            if (victimData.Name != "")
            {
                victimname = victimData.Name;
            }

            if (guiBadgeManager)
            {
                guiBadgeManager.PushKillText(killername + "(" + killerscore + ")", victimname, killtype);
            }


            if (killer == UnitZ.gameManager.PlayerNetID)
            {
                if (UnitZ.Hud.KillFeed)
                {
                    UnitZ.Hud.KillFeed.Kill(victimname, killername, killerscore, killtype);
                }
            }
        }
    }
 void Start()
 {
     guiBadgeManager = (GUIKillBadgeManager)GameObject.FindObjectOfType(typeof(GUIKillBadgeManager));
 }