示例#1
0
        public static T LoadAsset <T>(ResourceType resourceType, string assetName) where T : Object
        {
            ResourceLoad _resourceLoad = (ResourceLoad)GameModleManager.GetGameModel(typeof(ResourceLoad));
            string       _resourcePath = ResourcePath.GetPath(resourceType, assetName);
            T            value         = _resourceLoad.LoadAsset <T>(_resourcePath);

            return(value);
        }
示例#2
0
 private void Awake()
 {
     _audioManager = (AudioManager)GameModleManager.GetGameModel(typeof(AudioManager));
 }