Ejemplo n.º 1
0
    void HardCutTransition()
    {
        transitionmanagerInstance.DisableFadeOut();

        switch (changeDestination)
        {
        case DestinationChangeType.CHANGESCENE:
            if (transitionDisplay == TransitionDisplayType.ADJUSTABLETEXT)
            {
                transitionmanagerInstance.HardCut(transitionTime, dateText, depthText, sceneName);
            }
            else
            {
                transitionmanagerInstance.HardCut(transitionTime, transitionImage, sceneName);
            }
            break;

        case DestinationChangeType.TELEPORT:
            if (transitionDisplay == TransitionDisplayType.ADJUSTABLETEXT)
            {
                transitionmanagerInstance.HardCut(transitionTime, dateText, depthText, destination);
            }
            else
            {
                transitionmanagerInstance.HardCut(transitionTime, transitionImage, destination);
            }
            break;
        }
    }