private void RemoveAllRemoveables() { for (int i = 0; i < this._dynamicLs.Count; i++) { BaseMonoDynamicObject obj2 = this._dynamicLs[i]; if (obj2.IsToBeRemove()) { this.RemoveDynamicObjectByRuntimeID(obj2.GetRuntimeID(), i); i--; } } }
public void RemoveAllDynamicObjects() { for (int i = 0; i < this._dynamicLs.Count; i++) { BaseMonoDynamicObject obj2 = this._dynamicLs[i]; if (!obj2.IsToBeRemove()) { obj2.SetDied(); } this.RemoveDynamicObjectByRuntimeID(obj2.GetRuntimeID(), i); i--; } }