Esempio n. 1
0
    public void MoveToNewArea(AreaTypes aType)
    {
        currentPathPoolGroup = allPathedAreas.Find(x => x.thisPathedArea.thisAreaType == aType);

        if (currentPathPoolGroup == null)
        {
            Debug.LogError("Invalid area type set as starting area.");
        }
        else
        {
            currentPathPoolGroup.Fixed_SetupLocalReferences();
        }
    }
Esempio n. 2
0
 public void SetStartingArea(AreaTypes areaType)
 {
     currentPathPoolGroup = allPathedAreas.Find(x => x.thisPathedArea.thisAreaType == areaType);
     if (currentPathPoolGroup == null)
     {
         Debug.LogError("Invalid area type set as starting area.");
     }
     else
     {
         pathBuilder.BuildFixedArea(currentPathPoolGroup);
         pathBuilder.BuildExtensionsToFixedArea();
         currentPathPoolGroup.Fixed_SetupLocalReferences();
         currentBuiltPathPiece = currentPathPoolGroup.thisPathedArea.startBPP;
     }
 }