public Pool(IronBellyTestSetting ironBellyTestSetting) { TypeOfObjectInPool = typeof(T); _prefab = ironBellyTestSetting.prefabNeighbor.gameObject; _startSizeOfPool = ironBellyTestSetting.startPoolSize; SetObjectsInPool(); }
public void Initialize(IronBellyTestSetting ironBellyTestSetting) { AreaOfMove areaOfMove = ironBellyTestSetting.areaOfMove; transform.position = areaOfMove.GetRandomPointInArea(); randomMove.Initialize(areaOfMove); findNearestNeighbour.Initialize(ironBellyTestSetting.useLineRender); gameObject.SetActive(true); }