Exemple #1
0
    public void BecomeBaby()
    {
        if (parentsDed == false)
        {
            parentMoney += money;
        }
        else
        {
            parentMoney = money;
        }

        parentsDed = false;

        parentAge = age;

        age = STARTING_AGE;
        iq  = babyIQ;
        if (parentMoney > 0)
        {
            money        = Mathf.RoundToInt(parentMoney * 0.05f);
            parentMoney -= money;
        }
        else
        {
            money = 0;
        }

        status     = SINGLE_STRING;
        livingCost = singleCost;
        UI.BecomeChild();

        generation += 1;
        UpdateText();
    }