// https://github.com/liangxiegame/QFramework/issues/21 public void Issue21() { var testArrays = new ResizeableArray <string>(0); testArrays.Append("1"); testArrays.Append("2"); testArrays.RemoveAt(0); Assert.AreEqual(testArrays[0], "2"); }
private void AddItemToArray(object updatableObj) { if (updatableObj is IUpdatable) { mRegularArray.Append(updatableObj as IUpdatable); } if (updatableObj is IFixedUpdatable) { mFixedArray.Append(updatableObj as IFixedUpdatable); } if (updatableObj is ILateUpdatable) { mLateArray.Append(updatableObj as ILateUpdatable); } }