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); }
public void SetAttachmentProfile(AttachmentProfile attachmentProfile) { this.attachmentProfile = attachmentProfile; }