示例#1
0
    public void RemoveQuizPanel()
    {
        QuizPanel quizPanelData = quizPanel.GetComponent <QuizPanel>();

        quizPanelData.checkAnswerBtn.onClick.RemoveAllListeners();
        quizPanelData.easyDiffcultyBtn.onClick.RemoveAllListeners();
        quizPanelData.hardDiffcultyBtn.onClick.RemoveAllListeners();
        quizPanelData.normalDiffcultyBtn.onClick.RemoveAllListeners();

        quizPanel.GetComponent <RectTransform>().DOAnchorPosY(1400, 3).SetEase(Ease.InOutQuart);
    }
示例#2
0
    public void checkBtnInNormal(QuizPanel quizPanelData)
    {
        if (quizPanelData.normalInput.text == quizPanelData.itemNameInEng.text)
        {
            upgradeResult = true;
        }
        else
        {
            upgradeResult = false;
        }

        whereIsOutPut.GetComponent <RandomOutputWeapon>().isAleadyOutItem = true;
        RemoveQuizPanel();
    }
示例#3
0
    public void SetNormalDifficulty(QuizPanel quizPanelData)
    {
        quizPanelData.atk.text += " X 1.5";
        quizPanelData.hp.text  += " X 1.5";
        quizPanelData.normalInput.gameObject.SetActive(true);
        quizPanelData.easyDiffcultyBtn.gameObject.SetActive(false);
        quizPanelData.normalDiffcultyBtn.gameObject.SetActive(false);
        quizPanelData.hardDiffcultyBtn.gameObject.SetActive(false);
        quizPanelData.checkAnswerBtn.gameObject.SetActive(true);
        quizPanelData.multiplication.gameObject.SetActive(true);
        quizPanelData.multiplicationText.text = "정답을 맞출 시 1.5배!";

        quizPanelData.checkAnswerBtn.onClick.AddListener(() => checkBtnInNormal(quizPanelData));
        quizPanelData.easyDiffcultyBtn.onClick.RemoveAllListeners();
        quizPanelData.normalDiffcultyBtn.onClick.RemoveAllListeners();
    }
示例#4
0
    public void CallQuizPanel(Sheet1Data itemData)
    {
        MainSceneManager.Instance.Player.GetComponent <PlayerMove>().bCanMove = false;
        quizPanel.GetComponent <RectTransform>().DOAnchorPosY(0, 3).SetEase(Ease.InOutQuart);
        QuizPanel quizPanelData = quizPanel.GetComponent <QuizPanel>();

        quizPanelData.atk.text           = $"공격력 : {itemData.ATK.ToString()}";
        quizPanelData.hp.text            = $"체력 : {itemData.HP.ToString()}";
        quizPanelData.type.text          = $"타입 : {itemData.Type}";
        quizPanelData.itemNameInEng.text = itemData.Name_Eng;
        quizPanelData.itemNameInKor.text = itemData.Name_Kor;
        quizPanelData.info.text          = itemData.Info;

        quizPanelData.easyDiffcultyBtn.onClick.AddListener(() => SetEasyDiffculty(quizPanelData));
        quizPanelData.normalDiffcultyBtn.onClick.AddListener(() => SetNormalDifficulty(quizPanelData));
    }