IEnumerator nocustomerYumyum()
    {
        soupimg[0].SetActive(false);
        soupimg[1].SetActive(false);
        soupimg[0].SetActive(false);
        soupimg[1].SetActive(false);
        iseatsetting = true;
        sourcebgtoggle.SetActive(false);
        finishedfoodwindow.SetActive(false);
        yield return(new WaitForSeconds(4.0f));

        sourcebgtoggle.SetActive(false);
        cookingaLLwindow.SetActive(false);
        cookingzone.SetActive(false);
        customerinfobtn.SetActive(true);
        dishbgtoggle.SetActive(false);
        platedecowindow.SetActive(false);
        game_window = GAMEWINDOW.GAMEWINDOW_KINDPLATE;
        dishbgtoggle.SetActive(false);
        platedecowindow.SetActive(false);
        bearcupfinshed.SetActive(false);
        //점수 합산해서 상태 패턴 알고리즘 넣기
        if (playerscore >= 80)
        {
            customer_move.foodjudgment(CustomerMove.Customertaste.CUSTOMERNOTDELICIOUS);
        }
        else
        {
            customer_move.foodjudgment(CustomerMove.Customertaste.CUSTOMERDELICIOUS);
        }
        dishtyepeone.SetActive(false);
        dishtyepetwo.SetActive(false);
    }
 //재료 창 열림
 public void OpenInvenWindow()
 {
     cookingaLLwindow.SetActive(true);
     cookingzone.SetActive(true);
     invenwindow.SetActive(true);
     customerinfobtn.SetActive(false);
     game_window = GAMEWINDOW.GAMEWINDOW_INVEN;
 }
 //Hp맥주포션 오픈창
 public void OpenBearWindow()
 {
     cookingaLLwindow.SetActive(true);
     cookingzone.SetActive(true);
     bearcookingwindow.SetActive(true);
     game_window = GAMEWINDOW.GAMEWINDOW_BEER;
     customerinfobtn.SetActive(false);
 }
 //손질
 public void OpenMaterialCutWindow()
 {
     knifeobj.SetActive(true);
     cookingaLLwindow.SetActive(true);
     cookingzone.SetActive(true);
     materialcarepanel.SetActive(true);
     game_window = GAMEWINDOW.GAMEWINDOW_MATERIALCARE;
     customerinfobtn.SetActive(false);
 }
    //절구통 오픈칭
    public void OpenMortaWindow()
    {
        cookingaLLwindow.SetActive(true);
        cookingzone.SetActive(true);
        mortaclickpanel.SetActive(true);
        customerinfobtn.SetActive(false);

        game_window = GAMEWINDOW.GAMEWINDOW_MORTA;
    }
 //냄비
 public void OpenPotWindow()
 {
     toggleobj.SetActive(true);
     sourcebgtoggle.SetActive(true);
     cookingaLLwindow.SetActive(true);
     cookingzone.SetActive(true);
     sourcepanel.SetActive(true);
     potcookingwindow.SetActive(true);
     game_window = GAMEWINDOW.GAMEWINDOW_POT;
     customerinfobtn.SetActive(false);
 }
 //후라이펜
 public void OpenPanWidnow()
 {
     toggleobj.SetActive(true);
     sourcebgtoggle.SetActive(true);
     SoundManager.instance.effectbgm[4].Play();
     cookingaLLwindow.SetActive(true);
     cookingzone.SetActive(true);
     pancookingwindow.SetActive(true);
     game_window = GAMEWINDOW.GAMEWINDOW_PAN;
     sourcepanel.SetActive(true);
 }
 //오븐
 public void OpenovenWindow()
 {
     oventoggle.SetActive(true);
     toggleobj.SetActive(true);
     sourcebgtoggle.SetActive(true);
     SoundManager.instance.effectbgm[4].Play();
     cookingaLLwindow.SetActive(true);
     cookingzone.SetActive(true);
     sourcepanel.SetActive(true);
     ovencookingwindow.SetActive(true);
     game_window = GAMEWINDOW.GAMEWINDOW_OVEN;
     customerinfobtn.SetActive(false);
 }
    public void openplatedecoWindow()
    {
        toolcol.enabled = true;
        if (plate_decocook.bowlimg.activeSelf == true)
        {
            if (basket_slot.isstart)
            {
                soupsprite[0].SetActive(false);
                soupsprite[1].SetActive(true);
            }
            else
            {
                soupsprite[0].SetActive(true);
                soupsprite[1].SetActive(false);
            }
        }
        else
        {
            soupimg[0].SetActive(false);
            soupimg[1].SetActive(false);
            soupsprite[0].SetActive(false);
            soupsprite[1].SetActive(false);
        }

        if (dishtyepeone.activeSelf == true)
        {
            if (basket_slot.isstart)
            {
                //   soupsprite[0].transform.position = new Vector2(dishtyepeone.transform.position.x, dishtyepeone.transform.position.y);
            }
            else
            {
                // soupsprite[1].transform.position = new Vector2(dishtyepeone.transform.position.x, dishtyepeone.transform.position.y);
                //    soupsprite[0].SetActive(true);
                //   soupsprite[1].SetActive(false);
            }
        }
        else
        {
            soupsprite[0].SetActive(false);
            soupsprite[1].SetActive(false);
        }

        dishtyepeone.transform.position = new Vector2(0, 7);
        dishtyepetwo.transform.position = new Vector2(0, 7);
        sourcebgtoggle.SetActive(true);
        cookingaLLwindow.SetActive(true);
        platedecowindow.SetActive(true);
        game_window = GAMEWINDOW.GAMEWINDOW_KINDPLATE;
    }
示例#10
0
    /// <summary>
    /// 다시한번 확인할 것
    /// </summary>
    /// <returns></returns>
    //음식 나오는 애니메이션
    IEnumerator CustomerYumYum()
    {
        soupimg[0].SetActive(false);
        soupimg[1].SetActive(false);
        soupsprite[0].SetActive(false);
        soupsprite[1].SetActive(false);
        iseatsetting = true;
        yield return(new WaitForSeconds(6.0f));

        finishedfoodwindow.SetActive(false);
        SoundManager.instance.effectbgm[7].Play();
        yumyummousepanel.SetActive(true);
        yield return(new WaitForSeconds(5.0f));

        yumyummousepanel.SetActive(false);
        cookingaLLwindow.SetActive(false);
        cookingzone.SetActive(false);
        customerinfobtn.SetActive(true);
        dishbgtoggle.SetActive(false);
        platedecowindow.SetActive(false);
        game_window = GAMEWINDOW.GAMEWINDOW_KINDPLATE;
        dishbgtoggle.SetActive(false);
        platedecowindow.SetActive(false);
        bearcupfinshed.SetActive(false);
        SoundManager.instance.effectbgm[7].Stop();

        //점수 합산해서 상태 패턴 알고리즘 넣기
        if (playerscore >= 80)
        {
            customer_move.foodjudgment(CustomerMove.Customertaste.CUSTOMERDELICIOUS);
        }
        else
        {
            customer_move.foodjudgment(CustomerMove.Customertaste.CUSTOMERNOTDELICIOUS);
        }
        dishtyepeone.SetActive(false);
        dishtyepetwo.SetActive(false);
    }