Esempio n. 1
0
        public void OnClick()
        {
            TooltipManager.Instance.touchSupport = true;
            enableMouseButton.gameObject.SetActive(true);
            gameObject.SetActive(false);

            PopupTooltipRemotely popupFunction = gameObject.GetComponent <PopupTooltipRemotely>();

            if (popupFunction == null)
            {
                return;
            }

            popupFunction.PopupTooltip(popupOnObject, "You've enabled touch controls. To activate tooltips in this mode, press and hold over items.", "Okay");
        }
Esempio n. 2
0
        private void Start()
        {
            // Check if player has already seen the startup tooltip. If so, don't show it again.
            bool hasSeenStartupTip = PlayerPrefs.GetInt("HasSeenStartupTip", 0) != 0;

            if (hasSeenStartupTip)
            {
                return;
            }

            PopupTooltipRemotely popupFunction = gameObject.GetComponent <PopupTooltipRemotely>();

            if (popupFunction == null)
            {
                return;
            }

            popupFunction.PopupTooltip(popupOnObject, "<b>Hi there!\n</b>\nHover over the items you see here to discover what ProTips can do for your game.\n", "Continue");
            PlayerPrefs.SetInt("HasSeenStartupTip", 1);
        }