예제 #1
0
    private void Start()
    {
        if (numberOfVideos > 0)
        {
            ActivateButtons(true);
            videoPlayer.clip = videoClips[0];
            videoDuration    = (int)CalculateVideoDuration(videoClips[0]);

            if (progressTracker != null)
            {
                progressTracker.InitProgressTracker(videoDuration);
            }
        }
    }
예제 #2
0
    public virtual void Init(Dictionary <int, InstructionBase> instructions, int userActionInstructions, bool autoProgress)
    {
        this.instructions    = instructions;
        currentInstructionNr = -1; // ?
        numberOfInstructions = instructions.Count - 1;

        this.autoProgress = autoProgress;

        mainManager = GetComponent <MainManager>();

        // Progress tracker (just visualization of progress)
        progressTracker.InitProgressTracker(userActionInstructions, userActionInstructions);
    }