public void ShowDetails(Data_SectorPage dataRef) { //get the data data = dataRef; //the fade out loads the details FadeOutDetails(); //move the window PlayTween(detailWindow, true); }
public void GetImage(Data_SectorPage data) { //split image string into path and fileName if (data.image.Length > 1) { int splitIndex = data.image.LastIndexOf("/"); string imagePath = data.image.Substring(0, splitIndex); string imageName = data.image.Substring(splitIndex); //download image StartCoroutine(data.LoadLocalTexture(imagePath, imageName, AfterDownload, 0)); } }