< Summary

Class:DCL.Tutorial.TutorialSettings
Assembly:Onboarding
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Tutorial/Scripts/TutorialSettings.cs
Covered lines:0
Uncovered lines:19
Coverable lines:19
Total lines:62
Line coverage:0% (0 of 19)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
TutorialSettings()0%2100%
ConfigureTeacher(...)0%2100%
ConfigureEagleEyeCamera(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Tutorial/Scripts/TutorialSettings.cs

#LineLine coverage
 1using Cinemachine;
 2using System.Collections.Generic;
 3using UnityEngine;
 4using UnityEngine.UI;
 5
 6namespace DCL.Tutorial
 7{
 8    [CreateAssetMenu(fileName = "TutorialSettings", menuName = "TutorialSettings")]
 9    public class TutorialSettings : ScriptableObject
 10    {
 11        [Header("General Configuration")]
 012        public int tutorialVersion = 1;
 013        public float timeBetweenSteps = 0.5f;
 014        public bool sendStats = true;
 15
 16        [Header("Tutorial Steps on Genesis Plaza")]
 017        public List<TutorialStep> stepsOnGenesisPlaza = new List<TutorialStep>();
 18
 19        [Header("Tutorial Steps from Deep Link")]
 020        public List<TutorialStep> stepsFromDeepLink = new List<TutorialStep>();
 21
 22        [Header("Tutorial Steps from Reset Tutorial")]
 023        public List<TutorialStep> stepsFromReset = new List<TutorialStep>();
 24
 25        [Header("Tutorial Steps from Builder In World")]
 026        public List<TutorialStep> stepsFromBuilderInWorld = new List<TutorialStep>();
 27
 28        [Header("Tutorial Steps from User That Already Did The Tutorial")]
 029        public List<TutorialStep> stepsFromUserThatAlreadyDidTheTutorial = new List<TutorialStep>();
 30
 31        [Header("Teacher Configuration")]
 032        public float teacherMovementSpeed = 4f;
 33        public AnimationCurve teacherMovementCurve;
 34
 35        [Header("Eagle Eye Camera Configuration")]
 036        public Vector3 eagleCamInitPosition = new Vector3(30, 30, -50);
 037        public Vector3 eagleCamInitLookAtPoint = new Vector3(0, 0, 0);
 038        public bool eagleCamRotationActived = true;
 039        public float eagleCamRotationSpeed = 1f;
 40
 41        [Header("Debugging Configuration")]
 42        public bool debugRunTutorial = false;
 43        public int debugStartingStepIndex;
 44        public bool debugOpenedFromDeepLink = false;
 45
 46        internal Camera teacherCamera;
 47        internal RawImage teacherRawImage;
 48        internal TutorialTeacher teacher;
 49        internal Canvas teacherCanvas;
 50        internal CinemachineVirtualCamera eagleEyeCamera;
 51
 52        public void ConfigureTeacher(Camera teacherCamera, RawImage teacherRawImage, TutorialTeacher teacher, Canvas tea
 53        {
 054            this.teacherCamera = teacherCamera;
 055            this.teacherRawImage = teacherRawImage;
 056            this.teacher = teacher;
 057            this.teacherCanvas = teacherCanvas;
 058        }
 59
 060        public void ConfigureEagleEyeCamera(CinemachineVirtualCamera eagleEyeCamera) { this.eagleEyeCamera = eagleEyeCam
 61    }
 62}