Exemplo n.º 1
0
    public static List<FailedOrgan> ValuesAsList( Dictionary<OrganType, FailedOrgan> dict )
    {
        FailedOrgan[] tempArray =  new FailedOrgan[dict.Count];
        dict.Values.CopyTo(tempArray, 0);

        List<FailedOrgan> toRet = new List<FailedOrgan>();
        for(int i=0; i < tempArray.Length; i++){
            toRet.Add(tempArray[i]);
        }

        return toRet;
    }
Exemplo n.º 2
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);
    }
Exemplo n.º 3
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;
    }