Beispiel #1
0
 public PrefabProfile GetNewResource(string resourceName)
 {
     //Debug.Log(this.GetType().Name + ".GetResource(" + resourceName + ")");
     if (!RequestIsEmpty(resourceName))
     {
         string keyName = prepareStringForMatch(resourceName);
         if (resourceList.ContainsKey(keyName))
         {
             PrefabProfile returnValue = ScriptableObject.Instantiate(resourceList[keyName]) as PrefabProfile;
             returnValue.SetupScriptableObjects();
             return(returnValue);
         }
     }
     return(null);
 }