Esempio n. 1
0
    public void PickUp(int thirstUp, int hungerUp, int partsUp, PickUps.PickUpType environmentType)
    {
        bool safeEnvironment = true;

        if (environmentType.ToString() == "Cactus")
        {
            if (partyGathering < 50)
            {
                safeEnvironment = false;
            }
        }

        if (safeEnvironment)
        {
            partyThirstiness += thirstUp;
            partyHunger      += hungerUp;
            partyParts       += partsUp;

            foreach (var girl in girlList)
            {
                girl.GetComponent <GirlController>().EnvironmentPickup(environmentType);
            }
        }
        else
        {
            foreach (var girl in girlList)
            {
                girl.GetComponent <GirlController>().UpdateHappiness(-1);
            }
        }
    }
Esempio n. 2
0
 public void EnvironmentPickup(PickUps.PickUpType environmentType)
 {
     ownRole.ReactToPickup(environmentType.ToString());
 }