public SelfSchemeDesign CreateSelfDesign(UIScheme.SelfContainer container) { var design = Instantiate(mSelfDesignPrefab, mSchemeContainer).GetComponent <SelfSchemeDesign> (); design.Init(container); return(design); }
public void Init(UIScheme.SelfContainer container) { mContainer = container; gameObject.name = "Core: " + mContainer.SelfBuildInfo.Name; mName.text = mContainer.SelfBuildInfo.Name; }