Пример #1
0
    public void onClick_choice(int choice)
    {
        if (buttonChecked == true)
        {
            return;
        }
        buttonChecked = true;

        soundManager.playSound(0);
        soundManager.playSound(1);
        loadingText.active = true;         //로딩

        //다른 버튼은 없어짐
        for (int i = 0; i < button.Count; i++)
        {
            if (i != choice)
            {
                uiFadeOut(button[i], 1f);
            }
            if (i != choice)
            {
                uiFadeOut(choiceText[i], 1f);
            }
        }

        //선택한 버튼 페이드인
        uiFadeIn(selectedImg[choice], 1f);

        //선택한 버튼 차오름
        selectedImg[choice].fillAmount = 0.2f;         //초깃값
        choiceText[choice].color       = new Color(0f, 0f, 0f);
        StartCoroutine(imgFilled(choice, 0));
    }
Пример #2
0
    //구매하기
    public void onClick_purchase()
    {
        soundManager.playSound(1);         //클릭소리
        user.GetComponent <User>().startShowIcon(1);

        ItemInfo item  = Utils.getItemInfo(curCode);
        int      point = Utils.getPoint();

        Debug.Log("onClick_purchase()" + item.Code);

        if (item.Perchase == 0)                 //의류구매
        {
            buyColth(item, point);
        }
        else if (item.Perchase == 1)             //악세사리 구매
        {
            buyAccessory(item);
        }

        refreshState();
    }
Пример #3
0
    public void onClick_product()
    {
        soundManager.playSound(1);         //클릭소리

        //앱화면
        shopApp.setCode(curCode);
//		shopApp.cancelHeart();
        shopApp.removeInfo();


        if (focused.active)
        {
            focused.active = false;
        }
        else
        {
            hideActivatedImg();
            focused.active = true;
            shopApp.showHeart();

            //일반템인지 캐쉬템인지 노트와 코인아이콘으로 표시해서 구분
            ItemInfo itemInfo = Utils.getItemInfo(curCode);
            if (itemInfo.Perchase == 1)
            {
                shopApp.showCoin();
            }
            else
            {
                shopApp.showNote();
            }

            //구매,착용 유무에 맞게 버튼출력
            shopApp.showBtn();

            //정보와 이미지 출력
            shopApp.showInfo(curCode);
            shopApp.setProductImg(product.GetComponent <Image>().sprite);
        }
    }
Пример #4
0
 //카메라 페이지
 public void onClick_camera()
 {
     soundManager.playSound(1);         //클릭소리
     start_page.active  = false;
     camera_page.active = true;
 }