Exemple #1
0
        public void init()
        {
            if (_init)
            {
                return;
            }

            _init = true;

            _image = gameObject.GetComponent <RawImage>();

            _loadTool = new LoadTool(onLoadOver);

            load(_source);
        }
        public void init()
        {
            if (_init)
            {
                return;
            }

            _skeletonGraphic = gameObject.GetComponent <SkeletonGraphic>();
            setLoading(true);

            _loadTool = new LoadTool(onLoadOver);

            if (!string.IsNullOrEmpty(_source))
            {
                load(_source);
            }

            _init = true;
        }