Пример #1
0
//===================================== texture ===================================

        /// <summary>
        /// Requests the texture.
        /// </summary>
        /// <returns>The texture.</returns>
        /// <param name="path">Path.</param>
        public ResourceRequireOwner RequestTexture(string path)
        {
            ResourceRequireOwner owner = ResourceMgr.RequestResouce(
                path, false, 0, true, RESOURCE_TYPE.WEB_TEXTURE,
                ENCRYPT_TYPE.NORMAL, null, this.m_delErrorCallback, null);

            this.m_lstOwner.Add(owner);
            return(owner);
        }
Пример #2
0
        /// <summary>
        /// Requests the asset bundle.
        /// </summary>
        /// <returns>The asset bundle.</returns>
        /// <param name="path">Path.</param>
        /// <param name="arg">Argument.</param>
        public ResourceRequireOwner RequestAssetBundle(string path, long utime)
        {
            ResourceRequireOwner owner = ResourceMgr.RequestResouce(
                path, true, utime, true, RESOURCE_TYPE.WEB_ASSETBUNLDE,
                ENCRYPT_TYPE.NORMAL, null, this.m_delErrorCallback, null);

            this.m_lstOwner.Add(owner);
            return(owner);
        }
Пример #3
0
        /// <summary>
        /// Requests the audio clip.
        /// </summary>
        /// <returns>The audio clip.</returns>
        /// <param name="path">Path.</param>
        /// <param name="utime">Utime.</param>
        public ResourceRequireOwner RequestAudioClip(string path, long utime)
        {
            ResourceRequireOwner owner = ResourceMgr.RequestResouce(
                path, true, utime, true, RESOURCE_TYPE.WEB_AUDIOCLIP,
                ENCRYPT_TYPE.NORMAL, null, this.m_delErrorCallback, null
                );

            this.m_lstOwner.Add(owner);
            return(owner);
        }
Пример #4
0
        /// <summary>
        /// Requests the text bytes.
        /// </summary>
        /// <returns>The text bytes.</returns>
        /// <param name="path">Path.</param>
        /// <param name="utime">Utime.</param>
        public ResourceRequireOwner RequestTextBytes(string path, long utime)
        {
            ResourceRequireOwner owner = ResourceMgr.RequestResouce(
                path, true, utime, true, RESOURCE_TYPE.WEB_TEXT_BYTES,
                ENCRYPT_TYPE.NORMAL, null, this.m_delErrorCallback, null
                );

            this.m_lstOwner.Add(owner);
            return(owner);
        }