private void Awake()
 {
     if (!Object.op_Inequality((Object)this.m_Root, (Object)null))
     {
         return;
     }
     this.m_Window = (UnitListWindow)this.m_Root.GetComponent <UnitListWindow>();
 }
Exemplo n.º 2
0
 public void CreateUnitList()
 {
     if (!Object.op_Inequality((Object)this.Prefab_UnitListWindow, (Object)null) || !Object.op_Equality((Object)this.mUnitListWindow, (Object)null))
     {
         return;
     }
     this.mUnitListWindow = (UnitListWindow)Object.Instantiate <UnitListWindow>((M0)this.Prefab_UnitListWindow);
     ((Component)this.mUnitListWindow).get_transform().SetParent(((Component)this).get_transform(), false);
 }
Exemplo n.º 3
0
 public void DestroyUnitList()
 {
     if (!Object.op_Inequality((Object)this.mUnitListWindow, (Object)null))
     {
         return;
     }
     Object.Destroy((Object)((Component)this.mUnitListWindow).get_gameObject());
     this.mUnitListWindow = (UnitListWindow)null;
 }
Exemplo n.º 4
0
        public void CreateUnitList()
        {
            if (!Object.op_Equality((Object)this.mUnitListWindow, (Object)null))
            {
                return;
            }
            GameObject gameObject = AssetManager.Load <GameObject>(this.PATH_UNIT_LIST_WINDOW);

            if (!Object.op_Inequality((Object)gameObject, (Object)null))
            {
                return;
            }
            this.mUnitListWindow = (UnitListWindow)((GameObject)Object.Instantiate <GameObject>((M0)gameObject)).GetComponent <UnitListWindow>();
            ((Component)this.mUnitListWindow).get_transform().SetParent(((Component)this).get_transform(), false);
        }
Exemplo n.º 5
0
 public void SetRoot(UnitListWindow root)
 {
     this.m_Root = root;
 }