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);
        }
Exemplo n.º 3
0
        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);
        }