Ejemplo n.º 1
0
    void takeDamage()
    {
        //Debug.Log("is being killed?: "+takenDamage);
        float isItfest = ayyPlay.GetPlayerFastness();

        if (takenDamage && isItfest >= 1.1f)
        {
            //Debug.Log ("ow I'm hit!");
            health      = health - damage;
            takenDamage = false;
        }
        if (PRODamage)
        {
            //Debug.Log ("u shoot me!");
            health    = health - damage;
            PRODamage = false;
        }
    }