private void Start() { OE = FindObjectOfType <OpeningEffect>(); TextAsset json = Resources.Load("00Json/TutorialPrologue", typeof(TextAsset)) as TextAsset; PS = JsonUtility.FromJson <PrologueScript>(json.text); mc = FindObjectOfType <MovingCamera>(); StartCoroutine(TitleEffect(2)); }
protected virtual void RunOpeningEffects() { if (!IsLoaded) { return; } var storyboard = new Storyboard(); var openingEffect = OpeningEffect?.Build(this); if (openingEffect != null) { storyboard.Children.Add(openingEffect); } foreach (var effect in OpeningEffects.Select(e => e.Build(this)).Where(tl => tl != null)) { storyboard.Children.Add(effect); } storyboard.Begin(this); }
protected virtual void RunOpeningEffects() { if (!IsLoaded || _matrixTransform == null) { _isOpeningEffectPending = true; return; } _isOpeningEffectPending = false; var storyboard = new Storyboard(); var openingEffect = OpeningEffect?.Build(this); if (openingEffect != null) { storyboard.Children.Add(openingEffect); } foreach (var effect in OpeningEffects.Select(e => e.Build(this)).Where(tl => tl != null)) { storyboard.Children.Add(effect); } storyboard.Begin(this); }