示例#1
0
    //public void DLCButton()
    //{
    //    HTTPRequest request = new HTTPRequest(new System.Uri("https://matthewriddett.com/static/mludlc/test.png"), OnRequestFinished);
    //    request.Send();
    //}

    //void OnRequestFinished(HTTPRequest request, HTTPResponse response)
    //{
    //    Debug.Log("Request Finished! Text received: " + response.DataAsText);
    //    controller.SetCurrentTexture(response.DataAsTexture2D);
    //    galleryCameraModal.SetActive(false);
    //    saveButton.interactable = true;
    //    CleanUpScroll();
    //    DisplayGallery();
    //}

    private void SetUpWordTags()
    {
        string word = controller.GetTargetWord();

        if (word == "" || word == null)
        {
            Debug.Log("no word tags found");
            wordTags          = "";
            wordTagsText.text = wordTags;
        }
        else
        {
            WordDO dataObject = controller.GetWordDO(word);
            wordTags = dataObject.WordTags;
            Debug.Log("GetTargetWordTags = " + wordTags);
            wordTagsText.text = wordTags;
            Debug.Log("word tags = " + wordTagsText.text);
        }
    }