private void Awake() { if (!Object.op_Inequality((Object)this.m_Root, (Object)null)) { return; } this.m_Window = (UnitListWindow)this.m_Root.GetComponent <UnitListWindow>(); }
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); }
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; }
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); }
public void SetRoot(UnitListWindow root) { this.m_Root = root; }