Skip to content

Commit

Permalink
asset override for mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
voropserg committed Jan 27, 2023
1 parent 5d0f4b2 commit 628ce74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Runtime/services/TotemDebug.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public class TotemDebug : MonoBehaviour
void Awake()
{
string pathToAssetOverride = Application.dataPath + "/" + ServicesEnv.AssetsOverrideFilePath;
#if UNITY_ANDROID || UNITY_IOS
pathToAssetOverride = Application.persistentDataPath + "/" + ServicesEnv.AssetsOverrideFilePath;
#endif
if (File.Exists(pathToAssetOverride))
{
string overrideJson = File.ReadAllText(pathToAssetOverride);
Expand Down

0 comments on commit 628ce74

Please sign in to comment.