示例#1
0
    public LinkDesign CreateLinkDesign(UIScheme.LinkContainer container)
    {
        var link = Instantiate(mLinkPrefab, mLinksContainer).GetComponent <LinkDesign> ();

        link.Init(container);
        return(link);
    }
示例#2
0
 public void Init(UIScheme.LinkContainer container)
 {
     mContainer      = container;
     gameObject.name = mContainer.BuildInfo.SourceName + " - " + mContainer.BuildInfo.TargetName;
     StartCoroutine(Initialisation());
 }