Ejemplo n.º 1
0
 public static Sprite LoadSprite(ResourcePath path)
 {
     return(Resources.Load <Sprite>(path.PathResource));
 }
Ejemplo n.º 2
0
 public static GameObject LoadPrefab(ResourcePath path)
 {
     return(Resources.Load <GameObject>(path.PathResource));
 }
Ejemplo n.º 3
0
 public static T LoadObject <T>(ResourcePath path) where T : Object
 {
     return(Resources.Load <T>(path.PathResource));
 }
        public static List <AbilityItemConfig> LoadAbilityItemConfigs(ResourcePath resourcePath)
        {
            var config = ResourceLoader.LoadObject <AbilityItemConfigDataSource>(resourcePath);

            return(config == null ? new List <AbilityItemConfig>() : config.ItemConfigs.ToList());
        }