< 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")]
 4612        public int tutorialVersion = 1;
 4613        public float timeBetweenSteps = 0.5f;
 4614        public bool sendStats = true;
 15
 16        [Header("Tutorial Steps on Genesis Plaza")]
 4617        public List<TutorialStep> stepsOnGenesisPlaza = new List<TutorialStep>();
 18
 19        [Header("Tutorial Steps from Deep Link")]
 4620        public List<TutorialStep> stepsFromDeepLink = new List<TutorialStep>();
 21
 22        [Header("Tutorial Steps from Reset Tutorial")]
 4623        public List<TutorialStep> stepsFromReset = new List<TutorialStep>();
 24
 25        [Header("Tutorial Steps from Builder In World")]
 4626        public List<TutorialStep> stepsFromBuilderInWorld = new List<TutorialStep>();
 27
 28        [Header("Tutorial Steps from User That Already Did The Tutorial")]
 4629        public List<TutorialStep> stepsFromUserThatAlreadyDidTheTutorial = new List<TutorialStep>();
 30
 31        [Header("Teacher Configuration")]
 4632        public float teacherMovementSpeed = 4f;
 33        public AnimationCurve teacherMovementCurve;
 34
 35        [Header("Eagle Eye Camera Configuration")]
 4636        public Vector3 eagleCamInitPosition = new Vector3(30, 30, -50);
 4637        public Vector3 eagleCamInitLookAtPoint = new Vector3(0, 0, 0);
 4638        public bool eagleCamRotationActived = true;
 4639        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        {
 8854            this.teacherCamera = teacherCamera;
 8855            this.teacherRawImage = teacherRawImage;
 8856            this.teacher = teacher;
 8857            this.teacherCanvas = teacherCanvas;
 8858        }
 59
 060        public void ConfigureEagleEyeCamera(CinemachineVirtualCamera eagleEyeCamera) { this.eagleEyeCamera = eagleEyeCam
 61    }
 62}