Beispiel #1
0
		void Awake()
		{
			instance = this;
		
		}
Beispiel #2
0
		void OnEnable()
		{
			StartCoroutine("Read");
			controlManagerMod3 = ControlManagerMod3.instance;
		}
Beispiel #3
0
/*	This is the code for displaying textual data
	******************************
		IEnumerator Read()
		{
			www = new WWW(url); 
			yield return www;
			myText = www.text;
			JSONNode jsonObj = JSON.Parse(myText);
			controlManagerMod3.totData = jsonObj.Count;
			
			Debug.Log("totData" + controlManagerMod3.totData);
			
			for (int j=0; j<jsonObj.Count; j++) 
			{
				string data = jsonObj[j]["title"].ToString();
				controlManagerMod3.title.Add(data);
				
				//Debug.Log("@@@@@@@@" +data);
				if (jsonObj[j]["featured_image"].ToString ().Contains("source") )
				{
//				//	Texture imgData = jsonObj[j]["title"].ToString();
//					string imgUrl ="http://personalizedgift.uehelp.com//wp-content//uploads//2015//07//glass_dani.max_.png";
//			//		string imgUrl = jsonObj[j]["featured_image"]["source"].ToString();
//			//		Debug.Log( jsonObj[j]["featured_image"]["source"].ToString());
//					value = j;
//					StartCoroutine("DownloadIMG",imgUrl);		
					
				}
				else
				{
				//	controlManagerMod3.dataImage = imgDefault;
				}
			}
		
			
		}
	
		IEnumerator DownloadIMG(string urlImg)
		{
			WWW wwwImg = new WWW(urlImg);
			yield return wwwImg;	
//			controlManagerMod3.rowTexture[value] = wwwImg.texture;			
		}
		***********************************
		*/
		#endregion
		#region [Unity Method]
		void Start()
		{
			LoadImage();
		//	StartCoroutine("Read");
			controlManagerMod3 = ControlManagerMod3.instance;
		}