public void HideAllUI()
 {
     HunterRewardUIManager.GetInstance().HideHRUI();
     HunterQIManager.GetInstance().HideHQIUI();
     QuestCheckManager.GetInstance().HideQCUI();
     MainUIManager.GetInstance().HideMainCanvas();
     QMakeUIManager.GetInstance().HideQMUI();
 }
 public void OnlyShowHRUI()
 {
     QMakeUIManager.GetInstance().HideQMUI();
     HunterRewardUIManager.GetInstance().ShowHRUI();
     HunterQIManager.GetInstance().HideHQIUI();
     MainUIManager.GetInstance().ShowOrigin();   //그 인벤토리 패널 같은 거도 가려주기.
     QuestCheckManager.GetInstance().HideQCUI();
 }
 public void OnlyShowHIQUI()
 {
     QMakeUIManager.GetInstance().HideQMUI();
     HunterRewardUIManager.GetInstance().HideHRUI();
     HunterQIManager.GetInstance().ShowHunterInquireQuestUI();
     MainUIManager.GetInstance().ShowOnlyTimePanel();   //그 인벤토리 패널 같은 거도 가려주기.
     QuestCheckManager.GetInstance().HideQCUI();
 }
    public void OnlyShowMainUIOrigin()
    {
        QMakeUIManager.GetInstance().HideQMUI();
        HunterRewardUIManager.GetInstance().HideHRUI();
        HunterQIManager.GetInstance().HideHQIUI();
        QuestCheckManager.GetInstance().HideQCUI();

        MainUIManager.GetInstance().ShowOrigin();   //대화창만 가리는 거 보여줌,.
    }
    public void OnlyShowMainUITalk()
    {
        QMakeUIManager.GetInstance().HideQMUI();
        HunterRewardUIManager.GetInstance().HideHRUI();
        HunterQIManager.GetInstance().HideHQIUI();
        QuestCheckManager.GetInstance().HideQCUI();

        MainUIManager.GetInstance().ShowOrigin();
        MainUIManager.GetInstance().ShowCharaTextPanel();
        MainUIManager.GetInstance().ShowPlayerTextPanel();
    }
    IEnumerator DumpMotion()
    {
        QMakeUIManager.GetInstance().HideQMUI();
        float time = 0f;

        while (time < 1f)
        {
            parchmentGameObject.transform.Translate((Vector3.back) * (Time.deltaTime * 4f), Space.World);
            time += Time.deltaTime;
            yield return(null);
        }
        CleanParchment();
        StartCoroutine(UnfoldMotion());
    }
    IEnumerator UnfoldMotion()
    {
        QMakeUIManager.GetInstance().HideQMUI();
        CleanParchment();

        ParchmentPosToOrigin();
        parchmentGameObject.transform.Translate(Vector3.right * 2f);
        float time = 0f;

        while (time < 1f)
        {
            parchmentGameObject.transform.Translate((Vector3.left) * (Time.deltaTime * 2f), Space.World);

            time += Time.deltaTime;
            yield return(null);
        }
        ParchmentPosToOrigin();

        QMakeUIManager.GetInstance().ShowQMUI();
    }
    IEnumerator FoldMotion(bool onemore)
    {
        QMakeUIManager.GetInstance().HideQMUI();
        ParchmentPosToOrigin();
        float time = 0f;

        while (time < 1f)
        {
            parchmentGameObject.transform.Translate((Vector3.right) * (Time.deltaTime * 3f), Space.World);

            time += Time.deltaTime;
            yield return(null);
        }

        CleanParchment();

        if (onemore)
        {
            StartCoroutine(UnfoldMotion());
        }
    }
    void Awake()
    {
        instance = this;

        dumpBtnText.text     = UIGeneralTextsManager.GetUIGeneralText(uiGeneralUIName, "dump");
        oneMoreBtnText.text  = UIGeneralTextsManager.GetUIGeneralText(uiGeneralUIName, "onemore");
        completeBtnText.text = UIGeneralTextsManager.GetUIGeneralText(uiGeneralUIName, "complete");
        stampBtnText.text    = UIGeneralTextsManager.GetUIGeneralText(uiGeneralUIName, "stamp");

        mobStampRadio      = new RadioQM();
        evidenceStampRadio = new RadioQM();

        Button[] btns = QMCanvas.GetComponentsInChildren <Button>();
        foreach (Button btn in btns)
        {
            switch (btn.name)
            {
            case "GoblinStampTool":
                mobStampRadio.AddRadioList(btn);
                break;

            case "GargoyleStampTool":
                if (false == PhaseManager.GetInstance().IsOpen(E_Monster.GARGOYLE))     //인가증 유무에 따라 다르게.
                {
                    btn.interactable = false;
                }
                else
                {
                    mobStampRadio.AddRadioList(btn);
                }
                break;

            case "HellhoundStampTool":
                if (false == PhaseManager.GetInstance().IsOpen(E_Monster.HELLHOUND))     //인가증 유무에 따라 다르게.
                {
                    btn.interactable = false;
                }
                else
                {
                    mobStampRadio.AddRadioList(btn);
                }
                break;

            case "WyvernStampTool":
                if (false == PhaseManager.GetInstance().IsOpen(E_Monster.WYVERN))     //인가증 유무에 따라 다르게.
                {
                    btn.interactable = false;
                }
                else
                {
                    mobStampRadio.AddRadioList(btn);
                }
                break;

            case "TrollStampTool":
                if (false == PhaseManager.GetInstance().IsOpen(E_Monster.TROLL))     //인가증 유무에 따라 다르게.
                {
                    btn.interactable = false;
                }
                else
                {
                    mobStampRadio.AddRadioList(btn);
                }
                break;

            case "SabretoothStampTool":
                if (false == PhaseManager.GetInstance().IsOpen(E_Monster.SABRETOOTH))     //인가증 유무에 따라 다르게.
                {
                    btn.interactable = false;
                }
                else
                {
                    mobStampRadio.AddRadioList(btn);
                }
                break;

            case "GriffonStampTool":
                if (false == PhaseManager.GetInstance().IsOpen(E_Monster.GRIFFON))     //인가증 유무에 따라 다르게.
                {
                    btn.interactable = false;
                }
                else
                {
                    mobStampRadio.AddRadioList(btn);
                }
                break;

            case "MinotaurusStampTool":
                if (false == PhaseManager.GetInstance().IsOpen(E_Monster.MINOTAURUS))     //인가증 유무에 따라 다르게.
                {
                    btn.interactable = false;
                }
                else
                {
                    mobStampRadio.AddRadioList(btn);
                }
                break;


            case "FingerStampTool":
                evidenceStampRadio.AddRadioList(btn);
                break;

            case "CanineStampTool":
                if (false == PhaseManager.GetInstance().IsOpen(E_Evidence.CANINE))     //인가증 유무에 따라 다르게.
                {
                    btn.interactable = false;
                }
                else
                {
                    evidenceStampRadio.AddRadioList(btn);
                }
                break;

            case "LeatherStampTool":
                if (false == PhaseManager.GetInstance().IsOpen(E_Evidence.LEATHER))     //인가증 유무에 따라 다르게.
                {
                    btn.interactable = false;
                }
                else
                {
                    evidenceStampRadio.AddRadioList(btn);
                }
                break;

            case "CoreStampTool":
                if (false == PhaseManager.GetInstance().IsOpen(E_Evidence.CORE))     //인가증 유무에 따라 다르게.
                {
                    btn.interactable = false;
                }
                else
                {
                    evidenceStampRadio.AddRadioList(btn);
                }
                break;
            }
        }
        ResetQMUI();
    }