Example #1
0
    /// <summary>
    /// Plays the video tutorial (during first run).
    /// </summary>
    public void ShowTutorialPre()
    {
        // Instantiate a new VideoDemoScreen from its Prefab
        VideoDemoScreen = Instantiate(_VideoDemoScreen);

        // Parent this VideoDemoScreen to the existing Canvas
        ParentToCanvas(VideoDemoScreen.gameObject);

        // Play
        VideoDemoScreen.Play();
    }
Example #2
0
    /// <summary>
    /// Plays the video tutorial (for an existing player)
    /// </summary>
    public void ShowTutorialPost()
    {
        // Instantiate a new VideoDemoScreen from its Prefab
        VideoDemoScreen = Instantiate(_VideoDemoScreen);

        // Parent this VideoDemoScreen to the existing Canvas
        ParentToCanvas(VideoDemoScreen.gameObject);

        // Play with game flag
        VideoDemoScreen.CalledFromGame();
        VideoDemoScreen.Play();
    }