public void OnPointerEnter(PointerEventData eventData) { if (enableMouse == true && mouseTooltipObject.activeSelf) { mouseTitle.text = title; mouseDescription.text = description; mouseAnimator.Play("In"); mouseBlur.BlurInAnim(); } if (enableVirtualCursor == true && virtualTooltipObject.activeSelf) { virtualTitle.text = title; virtualDescription.text = description; virtualAnimator.StopPlayback(); virtualAnimator.Play("In"); virtualBlur.BlurInAnim(); } }
void Start() { bManager = gameObject.GetComponent <BlurManager>(); splashScreenAnimator = splashScreen.GetComponent <Animator>(); ssTimedAction = splashScreen.GetComponent <TimedAction>(); mainPanelsAnimator = mainPanels.GetComponent <Animator>(); homePanelAnimator = homePanel.GetComponent <Animator>(); if (enableLoginScreen == false) { if (disableSplashScreen == true) { splashScreen.SetActive(false); mainPanels.SetActive(true); mainPanelsAnimator.Play("Start"); homePanelAnimator.Play("Panel In"); backgroundAnimator.Play("Switch"); bManager.BlurInAnim(); } else { mainPanelsAnimator.Play("Invisible"); bManager.BlurOutAnim(); splashScreen.SetActive(true); } } else { splashScreen.SetActive(true); mainPanelsAnimator.Play("Invisible"); homePanelAnimator.Play("Wait"); bManager.BlurOutAnim(); } }