public void OnPointerEnter(PointerEventData eventData) { panelAnimator.Play("Friends Panel In"); bManager.BlurInAnim(); }
void Start() { if (enableBlurSystem == true) { bManager = gameObject.GetComponent <BlurManager>(); bManager.BlurInAnim(); } if (disableSplashScreen == true) { splashScreen.SetActive(false); splashScreenLogin.SetActive(false); splashScreenRegister.SetActive(false); mainPanels.SetActive(true); mainPanelsAnimator = mainPanels.GetComponent <Animator>(); mainPanelsAnimator.Play("Main Panel Opening"); } else if (isLoggedIn == false && alwaysShowLoginScreen == true) { splashScreen.SetActive(false); splashScreenLogin.SetActive(true); splashScreenRegister.SetActive(true); } else if (isLoggedIn == false && alwaysShowLoginScreen == false) { splashScreen.SetActive(false); splashScreenLogin.SetActive(true); splashScreenRegister.SetActive(true); } else if (isLoggedIn == false && alwaysShowLoginScreen == false) { splashScreen.SetActive(false); splashScreenLogin.SetActive(true); splashScreenRegister.SetActive(true); } else if (isLoggedIn == true && alwaysShowLoginScreen == false && disableSplashScreen == true) { Debug.Log("Disable splash screen"); splashScreen.SetActive(false); splashScreenLogin.SetActive(false); splashScreenRegister.SetActive(false); } else if (isLoggedIn == true && alwaysShowLoginScreen == true) { splashScreen.SetActive(false); splashScreenLogin.SetActive(true); splashScreenRegister.SetActive(true); } else if (isLoggedIn == true && alwaysShowLoginScreen == false) { splashScreen.SetActive(true); splashScreenLogin.SetActive(false); splashScreenRegister.SetActive(false); } else if (isLoggedIn == true) { splashScreen.SetActive(true); splashScreenLogin.SetActive(false); splashScreenRegister.SetActive(false); } }