/// <summary> /// Создание MList с указанием массива который будет качестве лежащего в основе MList. /// </summary> /// <param name="array"></param> /// <param name="growMode"></param> /// <param name="growFactor"></param> /// <param name="growLinear"></param> public MList(T[] array, GrowMode growMode, double growFactor, int growLinear) { AssignArray(array); Grow = growMode; GrowFactor = growFactor; GrowLen = growLinear; }
/// <summary> /// Начальная ёмкость массива будет 2 элемента. /// </summary> /// <param name="growMode"></param> /// <param name="growFactor"></param> /// <param name="growLinear"></param> public MList(GrowMode growMode, double growFactor, int growLinear) { Grow = growMode; Capacity = InitialCapacity; Data = new T[InitialCapacity]; GrowFactor = growFactor; GrowLen = growLinear; }
public ObjectPool(GameObject sourceObject, int numPooled, GrowMode growMode) { _sourceObject = sourceObject; _growMode = growMode; }