Beispiel #1
0
    public void FamilyEventText()
    {
        if (familybool && gameMain.ReturnForDays() % 7 == 0)
        {
            familyMoneyButton.gameObject.SetActive(true);
            switch (familycount)
            {
            case 1: dialytext = gameText.DialyText(10, 1) + "\n\n\n\n\n"; FamilyButtontext.text = "5000円"; break;

            case 2: dialytext = gameText.DialyText(11, 1) + "\n\n\n\n\n"; FamilyButtontext.text = "10000円"; break;

            case 3: dialytext = gameText.DialyText(12, 1) + "\n\n\n\n\n"; FamilyButtontext.text = "7000円"; break;

            case 4: dialytext = gameText.DialyText(13, 1) + "\n\n\n\n\n"; FamilyButtontext.text = "30000円"; break;
            }
        }
        else if (gameMain.ReturnForDays() == 1)//初日
        {
            familyMoneyButton.gameObject.SetActive(false);
            dialytext = gameText.DialyText();
        }
        else
        {
            familyMoneyButton.gameObject.SetActive(false);
            dialytext = gameText.DialyText(Random.Range(4, 10), 1);
        }
        Image1.text = eventManager.StutusText() + gameMain.Kyuuryou() + dialytext + "\n\n" + gameMain.SelectStatusText();
    }
Beispiel #2
0
    public string Kyuuryou()
    {
        string a = "";

        if (days % 7 == 0)
        {
            moneys += 15000;
            a       = gameText.DialyText(2, 1) + "+15000円";
        }
        else
        {
            a = "";
        }
        return(a + "\n");
    }