Пример #1
0
    public void Initialize(IronBellyTestSetting ironBellyTestSetting)
    {
        AreaOfMove areaOfMove = ironBellyTestSetting.areaOfMove;

        transform.position = areaOfMove.GetRandomPointInArea();

        randomMove.Initialize(areaOfMove);

        findNearestNeighbour.Initialize(ironBellyTestSetting.useLineRender);
        gameObject.SetActive(true);
    }
Пример #2
0
 public void SetUp()
 {
     positionHandler = new PositionHandler();
     prefab          = Resources.Load <FindNearestNeighbour>("TestResources/GameObject_FindNearestNeighbour");
     areaOfMove      = new AreaOfMove();
 }
 public void Initialize(AreaOfMove areaOfMove)
 {
     _areaOfMove = areaOfMove;
     target      = _areaOfMove.GetRandomPointInArea();
 }