private void Start() { if (numberOfVideos > 0) { ActivateButtons(true); videoPlayer.clip = videoClips[0]; videoDuration = (int)CalculateVideoDuration(videoClips[0]); if (progressTracker != null) { progressTracker.InitProgressTracker(videoDuration); } } }
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); }