//############################################################################################### public void Awake() { Instance = this; Battle.battleGroupList.onAdd += OnChangedBattleGroupList; Battle.battleGroupList.onRemove += OnChangedBattleGroupList; //UILimitBreak.OnLimitBreakStart += Show; UILimitBreak.OnLimitBreakEnd += LimitBreakEnd; UILimitBreak.heroSlotList = heroSlotPool; InitSortBehavior(); }
void UpdateContent() { //if (UIHeroInventory.Instance.isLimitBreak) // return; if (isNeedToShow) { if (UIHeroInventory.Instance.isLimitBreak) { return; } if (heroSlot) { return; } //Debug.Log("여기"); //if (SceneLobby.currentState != LobbyState.SubMenu) if (!isDestroy)// && UIHeroInventory.heroSlotContainerList.Find(x => x.gameObject == this.gameObject) != null) { heroSlot = UIHeroInventory.GetHeroSlotFromPool(); } } else { if (UILimitBreak.Instance.heroContainerPool.Find(x => x == this)) { return; } if (UIHeroInventory.heroSlotContainerList.Find(x => x.gameObject == this.gameObject) && heroSlot != null) { heroSlot.transform.SetParent(UIHeroInventory.Instance.heroSlotStackArea.transform); heroSlot = null; } } }