Пример #1
0
    public void GetImagePathFromLanguageControllerAndChangeImage()
    {
        string newImgPath = LanguageController.GetImage(IdOfImage);

        if (newImgPath.Equals(string.Empty))
        {
            Debug.LogWarning("L_Image | GetSpriteFromLanguageControllerAndPlaceItInImage | Atempted to load a Image entry that is not availible in the language file, is the file up to date?");
        }
        else
        {
            StartCoroutine(LoadAndApplyTexture(newImgPath)); //WebRequest is made to function withing a coroutine and is dodgy outside of it
        }
    }