Beispiel #1
0
        public T LoadUI <T>(eUIPrefab prefab) where T : Object
        {
            string path = UIPrefabTable.GetUIPath(prefab);
            T      go   = Resources.Load <T>(path);

            return(go);
        }
Beispiel #2
0
        public ResourceRequest LoadUIAsync(eUIPrefab prefab)
        {
            string          path      = UIPrefabTable.GetUIPath(prefab);
            ResourceRequest operation = Resources.LoadAsync <GameObject>(path);

            return(operation);
        }
Beispiel #3
0
 public string GetUIPath(eUIPrefab type)
 {
     return(GetPath((int)type));
 }