public LinkDesign CreateLinkDesign(UIScheme.LinkContainer container) { var link = Instantiate(mLinkPrefab, mLinksContainer).GetComponent <LinkDesign> (); link.Init(container); return(link); }
public void Init(UIScheme.LinkContainer container) { mContainer = container; gameObject.name = mContainer.BuildInfo.SourceName + " - " + mContainer.BuildInfo.TargetName; StartCoroutine(Initialisation()); }