Exemple #1
0
    // Update is called once per frame
    void Update()
    {
        if (m_CommandWindow == null)
        {
            m_CommandWindow = FindObjectOfType <CommandWindow>();
            if (m_CommandWindow != null)
            {
                m_CommandWindow.onMessageSentCallback += OnMessageSentCallback;
                m_ClientWorld.GetExistingSystem <S_HandleTextReceived>().CommandWindow = m_CommandWindow;
            }
        }

        if (m_FeedbackWindow == null)
        {
            m_FeedbackWindow = FindObjectOfType <FeedbackWindow>();
            if (m_FeedbackWindow != null)
            {
                m_ClientWorld.GetExistingSystem <S_HandleVisorMessageReceived>().FeedbackWindow = m_FeedbackWindow;
            }
        }

        if (m_AssetDatabase == null)
        {
            m_AssetDatabase = FindObjectOfType <GameAssetDatabase>();
            if (m_AssetDatabase != null)
            {
                m_ClientWorld.GetExistingSystem <S_HandleTextReceived>().GameAssetDatabase = m_AssetDatabase;
            }
        }

        ug_Network.Update();

        m_ClientWorld.EntityManager.CompleteAllJobs();
        b_EndOfFrame.Update();
    }
Exemple #2
0
    public GameAssetDatabase GetAssetDatabase()
    {
        if (m_assetDatabase == null)
        {
            m_assetDatabase = FindObjectOfType <GameAssetDatabase>();
        }

        return(m_assetDatabase);
    }