Untitled

mail@pastecode.io avatar
unknown
csharp
7 months ago
197 B
2
Indexable
Never
int newCells = backpack.unlockCells;
for (int i=0; i < inventoryCells.Count; i++)
{
    if (inventoryCells[i].IsUnlocked)
    {
        continue;
    }
    
    inventoryCells[i].Unlocked = true;
}