AquaSphere.IO.BuildLibrary.Load C# (CSharp) Method

Load() public method

public Load ( string dataPath ) : void
dataPath string
return void
		public void Load(string dataPath)
		{
			WebPlayerDebugManager.addOutput("Start loading Build Library..", 1);

			string dataPathStandalone = dataPath.Remove(dataPath.LastIndexOf("."));
			string fullPath = "";

			#if UNITY_EDITOR
			// For requested XML with Editor
			fullPath = "file://" + Application.dataPath + "/Resources/ExternalFiles/" + dataPath;
			#elif UNITY_STANDALONE
			// For requested JSON with Standalone
			fullPath = "file://" + Application.dataPath + "/"+ dataPath;
			
			/*
			 * if (GameManager.Instance.standaloneBetaMode)
			{
				fullPath = "file://" + Application.dataPath + dataPath;
			}

			else
			{
				TextAsset download = Resources.Load("ExternalFiles"+dataPathStandalone) as TextAsset;
				
				Initialize (download.text);
				return;
			}*/
			#elif UNITY_WEBPLAYER
			// For requested JSON with web player
			fullPath = Application.dataPath + dataPath;
			#elif UNITY_IOS
			TextAsset download = Resources.Load("ExternalFiles"+dataPathStandalone) as TextAsset;
			
			Initialize (download.text);
			return;
			#endif
			DBModuleManager.Instance.Event(
				"CONFIG",
				fullPath,
				"BuildLibrary");
		}