예제 #1
0
 private void ReAdjustIfDiff()
 {
     if (_showAInv != null && _showAInv.RedoItemsIfOldInvIsDiff())
     {
         AdjustContentHeight((_inv.InventItems.Count * _tileHeight) + _pad);
     }
 }
예제 #2
0
    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);
            }
        }
    }