示例#1
0
        void Awake()
        {
            gifButtonImage = gifButton.GetComponent <Image>();
            pngButtonImage = pngButton.GetComponent <Image>();

            containerRT = container.GetComponent <RectTransform>();
            staticImage.GetComponent <RectTransform>().sizeDelta = containerRT.sizeDelta;
            clipPlayer.GetComponent <RectTransform>().sizeDelta  = containerRT.sizeDelta;

            modal.SetActive(false);
            noImageMsg.SetActive(false);
            noClipMsg.SetActive(false);
            toolbar.SetActive(true);
            statusbar.SetActive(false);
            giphyLogo.SetActive(false);
            emLogo.SetActive(false);

#if EASY_MOBILE
            clipPlayerComp           = clipPlayer.AddComponent <ClipPlayerUI>();
            clipPlayerComp.ScaleMode = scaleMode == ScaleMode.AutoHeight ? ClipPlayerScaleMode.AutoHeight : ClipPlayerScaleMode.AutoWidth;
            gifButton.gameObject.SetActive(true);
            pngButton.gameObject.SetActive(true);
#else
            gifButton.gameObject.SetActive(false);
            pngButton.gameObject.SetActive(false);
#endif
        }
示例#2
0
        public override void Reset()
        {
            playerType   = PlayerType.ClipPlayerUI;
            clipPlayer   = null;
            clipPlayerUI = null;

            actionType = ActionType.Play;

            clip       = null;
            startDelay = 0;
            loop       = true;
        }