Наследование: AbstractResourceLoader
Пример #1
0
        protected void ProcessFont(string resPath)
        {
            var loader = FontLoader.Load(resPath, (isOk, _font) =>
            {
                if (!IsDestroy)
                {
                    var label = DependencyComponent as Text;
                    //foreach (UILabel label in gameObject.GetComponents<UILabel>())
                    {
                        label.font = _font;
                    }
                }
                OnFinishLoadDependencies(_font);
            });

            this.ResourceLoaders.Add(loader);
        }