Esempio n. 1
0
        /// <summary>
        /// リクエスト作成
        /// </summary>
        public IAssetLoadOperater <T> Create <T>(string path) where T : UnityEngine.Object
        {
            var key = path;

            if (!Path.HasExtension(key))
            {
                //	拡張子の無いリクエストは警告を出す
                ChipstarLog.Log_WarningNotHasExtensions(key);
            }
            else
            {
                //	拡張子があったら削る
                key = path.Replace(Path.GetExtension(key), string.Empty);
            }
            var match = m_regex.Match(key);

            if (!match.Success)
            {
                return(new ResourcesLoadOperation <T>(key));
            }

            //	Resources以下を拾う
            var accessKey = match.Groups[2].Value;

            return(new ResourcesLoadOperation <T>(key));
        }