Example #1
0
    public void BlenderBtn()
    {
        Blender nowBlender = GameObject.Find("Player").GetComponent <PlayerAct2>().nowObj.GetComponent <Blender>();

        if (nowBlender.soilCount == 0)
        {
            Alarm("흙이 부족합니다!");
        }
        else if (nowBlender.MatId == 0)
        {
            Alarm("섞을 재료가 없습니다!");
        }
        else
        {
            nowBlender.BlendStart();
        }
    }