private void ReAdjustIfDiff() { if (_showAInv != null && _showAInv.RedoItemsIfOldInvIsDiff()) { AdjustContentHeight((_inv.InventItems.Count * _tileHeight) + _pad); } }
private IEnumerator ThirtySecUpdate() { while (true) { var sec = Time.time < 30 ? 1 : 30; yield return(new WaitForSeconds(sec)); // wait if (_showAInv.RedoItemsIfOldInvIsDiff()) { AdjustContentHeight(_inv.InventItems.Count * _tileHeight); } } }