protected void TrySetContentDictionary() { if (contentServer == null) { contentServer = GetComponentInChildren <UnitContentServer <Content> >(); } if (contentServer) { contentDict = contentServer.Dictionary; } else { contentDict = new UnitContentDictionary <Content>(); } }
public void SetContentDictionary(UnitContentDictionary <Content> contentDict) { this.contentDict = contentDict; }