Ejemplo n.º 1
0
    public void SetUserName(string name)
    {
        if (string.IsNullOrEmpty(name))
        {
            m_messageUI.ShowSubMessage("Please Input UserName", 2f);
            return;
        }

        m_name = name;
    }
Ejemplo n.º 2
0
    public void CreateQuest()
    {
        //TODO: 퀘스트 생성 및 룸 생성

        Data.QuestInfo?questInfo = m_questInfoUI.SelectedQuest;

        if (questInfo == null)
        {
            if (m_messageUI != null)
            {
                m_messageUI.ShowSubMessage("Don't Quest Selected", 2f);
            }
            return;
        }

        CQuestManager.Inst.QuestSet(questInfo.Value);

        //TODO: 네트워크 매치 메이크 생성

        if (m_manager != null)
        {
            if (m_manager.matchMaker == null)
            {
                m_manager.StartMatchMaker();
            }

            //m_manager.matchMaker.CreateMatch(questInfo.Value.questName, 4, false, "", "", "", 0, 0, m_manager.OnMatchCreate);
            //return;
        }

        CSoundManager.Inst.StopBgm(m_bgmSource);
        CLoadingScene.LoadingScene("LevelRoot");
    }
Ejemplo n.º 3
0
    IEnumerator DeathMessage()
    {
        CMessageUI messageUI = CStageUIManager.Inst.MessageUI;

        yield return(new WaitForSeconds(1f));

        messageUI.ShowMainMessage("You Died", 6f, Color.red, MessageClipType.PlayerDied);

        yield return(new WaitForSeconds(6f));

        ResetUnit();

        yield return(new WaitForSeconds(1f));

        messageUI.ShowSubMessage("Remain : " + CQuestManager.Inst.RemainCount, 3f, MessageClipType.Base);
    }