/// <summary>
    /// Draws the GUI for the Timeline Window.
    /// </summary>
    protected void OnGUI()
    {
        Rect toolbarArea = new Rect(0, 0, base.position.width, TOOLBAR_HEIGHT);
        Rect controlArea = new Rect(0, TOOLBAR_HEIGHT, base.position.width, base.position.height - TOOLBAR_HEIGHT);

        updateToolbar(toolbarArea);
        cutsceneWrapper = DirectorHelper.UpdateWrapper(cutscene, cutsceneWrapper);
        directorControl.OnGUI(controlArea, cutsceneWrapper);
        DirectorHelper.ReflectChanges(cutscene, cutsceneWrapper);
    }
Exemple #2
0
    /// <summary>
    /// Draws the GUI for the Timeline Window.
    /// </summary>
    protected void OnGUI()
    {
        Rect controlArea = new Rect(0, TOOLBAR_HEIGHT, position.width, position.height - TOOLBAR_HEIGHT);

        updateToolbar();

        cutsceneWrapper = DirectorHelper.UpdateWrapper(cutscene, cutsceneWrapper);
        switch (Event.current.keyCode)
        {
        case KeyCode.RightArrow:
            cutscene.RunningTime += 0.01f;
            break;

        case KeyCode.LeftArrow:
            cutscene.RunningTime -= 0.01f;
            break;
        }
        directorControl.OnGUI(controlArea, cutsceneWrapper, position);
        DirectorHelper.ReflectChanges(cutscene, cutsceneWrapper);
    }