Ejemplo n.º 1
0
        protected void TrySetContentDictionary()
        {
            if (contentServer == null)
            {
                contentServer = GetComponentInChildren <UnitContentServer <Content> >();
            }

            if (contentServer)
            {
                contentDict = contentServer.Dictionary;
            }
            else
            {
                contentDict = new UnitContentDictionary <Content>();
            }
        }
Ejemplo n.º 2
0
 public void SetContentDictionary(UnitContentDictionary <Content> contentDict)
 {
     this.contentDict = contentDict;
 }