/// <summary> /// Override this method only if you (the developer) wants to programmatically /// control the means by which and when the Core Window is activated by Template 10. /// One scenario might be a delayed activation for Splash Screen. /// </summary> /// <param name="source">Reason for the call from Template 10</param> public void ActivateWindow(ActivateWindowSources source, SplashLogic splashLogic) { if (source != ActivateWindowSources.SplashScreen) { splashLogic.Hide(); } Window.Current.Activate(); }
public override void Initialize() { base.Initialize(); if (_splashConfig.HasValue) { SplashLogic.UpdateConfiguration(_splashConfig.Value); } }
//Checks initilization of UI elements void nullCheck() { //print("Nullcheck"); if (player == null) { player = GameObject.FindGameObjectWithTag("Player"); pl = player.GetComponent <PlayerLogic>(); sl = player.GetComponentInChildren <SplashLogic>(); playerMat = player.GetComponentInChildren <Renderer>(); } if (camera == null) { camera = GameObject.FindGameObjectWithTag("MainCamera"); cameraRespawn = camera.transform.position; } if (countdownObj == null) { countdownObj = GameObject.Find("Canvas/Countdown"); } if (respawn == null) { respawn = GameObject.FindGameObjectWithTag("Respawn"); } if (gameoverPanel == null) { gameoverPanel = GameObject.Find("Canvas/GameOverPanel"); punTime = gameoverPanel.GetComponentInChildren <PunGenerator>(); dateGen = gameoverPanel.GetComponentInChildren <DateGenerator>(); } if (finalText == null) { finalText = GameObject.Find("Canvas/GameOverPanel/FinalText").GetComponent <Text>(); } if (bestDistanceText == null) { bestDistanceText = GameObject.Find("Canvas/GameOverPanel/BestDistanceText").GetComponent <Text>(); } if (meltAgainButton == null) { meltAgainButton = GameObject.Find("Canvas/GameOverPanel/MeltAgainButton").GetComponent <Button>(); } if (gameUi == null) { gameUi = GameObject.Find("Canvas/GameUI"); } if (distanceText == null) { distanceText = GameObject.Find("Canvas/GameUI/DistanceText").GetComponent <Text>(); } if (playerSizeText == null) { playerSizeText = GameObject.Find("Canvas/GameUI/PlayerSizeText").GetComponent <Text>(); } if (sunIcon == null) { sunIcon = GameObject.Find("Canvas/GameUI/SunImage").GetComponent <Image>(); } if (tempIcon == null) { tempIcon = GameObject.Find("Canvas/GameUI/TemperatureImage/Temperature").GetComponent <RectTransform>(); tempRespawn = tempIcon.sizeDelta; } }
public void RegisterUrls(IUrlController controller) { SplashLogic.RegisterUrls(controller); }