Skip to content

Commit

Permalink
Fixed loose files for instances (regional or local) and prefabs
Browse files Browse the repository at this point in the history
  • Loading branch information
KABoissonneault committed Dec 7, 2021
1 parent 106d994 commit 376d5d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Scripts/Editor/LocationInstanceEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void OnGUI()

if(loc.prefab != null)
{
LocationPrefab tmplocpref = LocationHelper.LoadLocationPrefab(Application.dataPath + LocationHelper.locationPrefabFolder + loc.prefab + ".txt");
LocationPrefab tmplocpref = LocationHelper.LoadLocationPrefab(Path.Combine(Application.dataPath, LocationHelper.locationPrefabFolder, loc.prefab + ".txt"));

if (tmplocpref != null)
{
Expand Down
4 changes: 2 additions & 2 deletions Scripts/LocationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ namespace LocationLoader
{
public static class LocationHelper
{
public const string locationInstanceFolder = "/StreamingAssets/Locations/";
public const string locationPrefabFolder = "/StreamingAssets/Locations/LocationPrefab/";
public const string locationInstanceFolder = "StreamingAssets/Locations/";
public const string locationPrefabFolder = "StreamingAssets/Locations/LocationPrefab/";

const float animalSoundMaxDistance = 768 * MeshReader.GlobalScale; //Used for the objects with sound

Expand Down

0 comments on commit 376d5d8

Please sign in to comment.