Ejemplo n.º 1
0
    public void HealOrgan(OrganType organType, FailedOrgan organ)
    {
        //Update the UI
        UIManager.instance.HealOrgan(organ);

        //Remove organ from failedOrgan
        failedOrgans.Remove(organType);

        //reset orgasn health to 50
        organ.ResetOrgan();

        //Add to organs to fail
        organsToFail.Add(organType, organ);
    }
Ejemplo n.º 2
0
    public void HealOrganIndividual(OrganType organType, FailedOrgan organ)
    {
        //Update the UI
        UIManager.instance.HealOrgan(organ);

        //Remove organ from failedOrgan
        failedOrgans.Remove(organType);

        //reset orgasn health to 50
        organ.ResetOrgan();

        //Add to organs to fail
        organsToFail.Add(organType, organ);

        //Reset Initial position so dela calculations are now wrt to this position
        ZombieSpeedManager.Instance._initialPosition = ZombieSpeedManager.Instance.FinalPosition;
    }