protected override IEnumerator Start() { if (_screenMenu == null) { _screenMenu = GameObject.FindObjectOfType <UIScreenMenu>(); } yield return(base.Start()); }
protected override void Awake() { videoClipPath = ((CatchScreenSettings)ApplicationManager.instance.menuSettings.pageSettings .First(x => x.GetScreenType() == ScreenSettings.ScreenType.CatchScreen)).videoPath.key; base.Awake(); if (_UIScreenMenu == null) { _UIScreenMenu = GetComponentInParent <UIScreenMenu>(); } }
private IEnumerator Start() { _animator = GetComponent <Animator>(); _canvasGroup = GetComponent <CanvasGroup>(); _UILangMenu = GetComponentInChildren <UILangMenu>(); _screenMenu = GetComponentInParent <UIScreenMenu>(); while (_screenMenu != null && !_screenMenu.loaded) { yield return(null); } }