示例#1
0
 public Pool(IronBellyTestSetting ironBellyTestSetting)
 {
     TypeOfObjectInPool = typeof(T);
     _prefab            = ironBellyTestSetting.prefabNeighbor.gameObject;
     _startSizeOfPool   = ironBellyTestSetting.startPoolSize;
     SetObjectsInPool();
 }
示例#2
0
    public void Initialize(IronBellyTestSetting ironBellyTestSetting)
    {
        AreaOfMove areaOfMove = ironBellyTestSetting.areaOfMove;

        transform.position = areaOfMove.GetRandomPointInArea();

        randomMove.Initialize(areaOfMove);

        findNearestNeighbour.Initialize(ironBellyTestSetting.useLineRender);
        gameObject.SetActive(true);
    }