Пример #1
0
    public void KillPlayer()
    {
        this.isDead = true;

        SpriteRenderer sr = GetComponent <SpriteRenderer>();

        sr.color = new Color(sr.color.r, sr.color.g, sr.color.b, 0.5f);

        if (isServer)
        {
            if (this is Hooker)
            {
                EndGame.LegendDied();
            }
            else
            {
                EndGame.SurvivorDied();
            }
        }
    }