// ------------------------------------------------------------------ // Desc: // ------------------------------------------------------------------ void Update() { for (int l = MAX_LAYER - 1; l >= 0; --l) { List <BlendState> blendStates = layerToBlendStates[l]; for (int i = blendStates.Count - 1; i >= 0; --i) { BlendState blendState = blendStates[i]; if (blendState.Step()) { blendStates.RemoveAt(i); } } } }