コード例 #1
0
 public AttachmentProfile GetNewResource(string resourceName)
 {
     //Debug.Log(this.GetType().Name + ".GetResource(" + resourceName + ")");
     if (!RequestIsEmpty(resourceName))
     {
         string keyName = prepareStringForMatch(resourceName);
         if (resourceList.ContainsKey(keyName))
         {
             AttachmentProfile returnValue = ScriptableObject.Instantiate(resourceList[keyName]) as AttachmentProfile;
             returnValue.SetupScriptableObjects();
             return(returnValue);
         }
     }
     return(null);
 }
コード例 #2
0
 public void SetAttachmentProfile(AttachmentProfile attachmentProfile)
 {
     this.attachmentProfile = attachmentProfile;
 }