Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. using System;
  2. using SimpleLocalization.Sources;
  3. using UnityEngine;
  4.  
  5. namespace Assets.Program_Modules.Localization
  6. {
  7.     public class Unity3DResourcesSource : ILocalizationSource<string>
  8.     {
  9.         public string LoadData(Uri uriPath)
  10.         {
  11.             TextAsset asset = (TextAsset) Resources.Load(uriPath.OriginalString);
  12.  
  13.             return asset.text;
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement