Beispiel #1
0
    public void ResetPlayer()
    {
        this.isDead = false;
        this.health = MaxHealth;

        SpriteRenderer sr = GetComponent <SpriteRenderer>();

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

        // update endgame variables
        if (isServer)
        {
            if (this is Hooker)
            {
                EndGame.AddLegend();
            }
            else
            {
                EndGame.AddSurvivor();
            }
        }
    }