Example #1
0
 public void FadeGameOver()
 {
     OpenDay.gameObject.SetActive(true);
     FadeOut.gameObject.SetActive(true);
     if (gameMain.Money() <= 0)
     {
         OpenDay.text = "お金がなくなった";
     }
     else if (foodManager.Deathbool() == true)
     {
         OpenDay.text = "死 ん だ";
     }
 }
Example #2
0
    public void Pageselect(int page)
    {
        //Image1ならファーストクリックをtrueに
        if (Imagenumber == 0)
        {
            firstClick = true;
        }
        else
        {
            firstClick = false;
        }


        switch (page)
        {
        case 1:
            if (lastClick && fade.Gamestates() == Fade.Gamestate.GamePlay)
            {
                foodManager.SelectByouki();
                foodManager.ByoukiText();
                foodManager.SpecialDeath();
                eventManager.Calcu();
                gameMain.MoneyTairyokuCalcu();
                fade.FadeIn(true);
                Debug.Log(gameMain.Money());
                if (gameMain.ReturnForDays() >= 100 || dialy.FamilyClear())
                {
                    gameMain.Clear();
                    fade.currentstate = Fade.Gamestate.Clear;
                    fade.FadeIn(true);
                }
                else if (foodManager.Deathbool() == true || gameMain.Money() <= 0)
                {
                    //foodManager.ByoukiText();
                    gameMain.GameOver();
                    //fade.FadeIn(true);
                }
                else
                {
                    //foodManager.Heal();
                    gameMain.Opning();
                    button4.gameObject.SetActive(true);
                    Imagesposition.SetActive(false);    //日記を非表示に

                    //fade.FadeIn(true);
                }
                lastClick  = false;
                changetime = true;
            }
            else
            {
                novelspeed = -1;
            } /*Debug.Log("Burton1終了");*/ break;

        case 2:
            if (firstClick)
            {
                firstImages = true;
                Imagesspeed = 2;
            }
            else
            {
                Imagenumber--;
            } novelspeed = 1; break;
        }
    }