private IDisplayObject showPresent() { GameObject newObj = Instantiate(PresentPrefab, Root, false); displayObject = newObj.GetComponent <IDisplayObject>(); displayObject.Show(); return(displayObject); }
private IDisplayObject showVideo() { GameObject newObj = Instantiate(VideoPrefab, Root, false); displayObject = newObj.GetComponent <IDisplayObject>(); displayObject.Show(youtubeUrl); return(displayObject); }
private IDisplayObject showVideo() { GameObject newObj = Instantiate(VideoPrefab, Root, false); displayObject = newObj.GetComponent <IDisplayObject>(); Debug.LogFormat("{0}", pandoBoxInfo.videoUrl); displayObject.Show(pandoBoxInfo.urlLink, gameObject, "onVideoPlayedCompleted"); return(displayObject); }