< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
TutorialSettings()0%110100%
ConfigureTeacher(...)0%110100%
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")]
 4112        public int tutorialVersion = 1;
 4113        public float timeBetweenSteps = 0.5f;
 4114        public bool sendStats = true;
 15
 16        [Header("Tutorial Steps on Genesis Plaza")]
 4117        public List<TutorialStep> stepsOnGenesisPlaza = new List<TutorialStep>();
 18
 19        [Header("Tutorial Steps from Deep Link")]
 4120        public List<TutorialStep> stepsFromDeepLink = new List<TutorialStep>();
 21
 22        [Header("Tutorial Steps from Reset Tutorial")]
 4123        public List<TutorialStep> stepsFromReset = new List<TutorialStep>();
 24
 25        [Header("Tutorial Steps from Builder In World")]
 4126        public List<TutorialStep> stepsFromBuilderInWorld = new List<TutorialStep>();
 27
 28        [Header("Tutorial Steps from User That Already Did The Tutorial")]
 4129        public List<TutorialStep> stepsFromUserThatAlreadyDidTheTutorial = new List<TutorialStep>();
 30
 31        [Header("Teacher Configuration")]
 4132        public float teacherMovementSpeed = 4f;
 33        public AnimationCurve teacherMovementCurve;
 34
 35        [Header("Eagle Eye Camera Configuration")]
 4136        public Vector3 eagleCamInitPosition = new Vector3(30, 30, -50);
 4137        public Vector3 eagleCamInitLookAtPoint = new Vector3(0, 0, 0);
 4138        public bool eagleCamRotationActived = true;
 4139        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        {
 7854            this.teacherCamera = teacherCamera;
 7855            this.teacherRawImage = teacherRawImage;
 7856            this.teacher = teacher;
 7857            this.teacherCanvas = teacherCanvas;
 7858        }
 59
 060        public void ConfigureEagleEyeCamera(CinemachineVirtualCamera eagleEyeCamera) { this.eagleEyeCamera = eagleEyeCam
 61    }
 62}