public T LoadUI <T>(eUIPrefab prefab) where T : Object { string path = UIPrefabTable.GetUIPath(prefab); T go = Resources.Load <T>(path); return(go); }
public ResourceRequest LoadUIAsync(eUIPrefab prefab) { string path = UIPrefabTable.GetUIPath(prefab); ResourceRequest operation = Resources.LoadAsync <GameObject>(path); return(operation); }
public string GetUIPath(eUIPrefab type) { return(GetPath((int)type)); }