public void CleanChestPanel() { _currentChest.ChangeChestStatus(); LootView[] tempLoot = _lootContainer.GetComponentsInChildren <LootView>(); foreach (var loot in tempLoot) { Destroy(loot.gameObject); } }