// Therefore this will be called. Then the variable outside can also be updated? void UpdateBuff(BuffInfo inBuff) { if ((inBuff.time -= deltaUpdates) <= 0) { if (!inBuff.prevInfinite) { inBuff.power = 1; inBuff.time = 0; } else inBuff.SwapInfinite(); } }