using System.Collections; using System.Collections.Generic; using UnityEngine; namespace TON { public class AssetManager : SingletonBase { public bool LoadAsset(string path, out T result) where T : UnityEngine.Object { result = Resources.Load(path); return result != null; } public bool LoadSkillIcon(string skillId, out Sprite result) { return LoadAsset($"UI/Skill Icon/skill_icon_{skillId}", out result); } public bool LoadPlayerIcon(string playerType, out Sprite result) { var playerColor = playerType == "b" ? "Black" : "White"; return LoadAsset($"UI/Player/{playerColor}_Cat", out result); } } }