< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
TutorialSettings()0%110100%
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")]
 112        public int tutorialVersion = 1;
 113        public float timeBetweenSteps = 0.5f;
 114        public bool sendStats = true;
 15
 16        [Header("Tutorial Steps on Genesis Plaza")]
 117        public List<TutorialStep> stepsOnGenesisPlaza = new ();
 18
 19        [Header("Tutorial Steps from Deep Link")]
 120        public List<TutorialStep> stepsFromDeepLink = new ();
 21
 22        [Header("Tutorial Steps from Reset Tutorial")]
 123        public List<TutorialStep> stepsFromReset = new ();
 24
 25        [Header("Tutorial Steps from User That Already Did The Tutorial")]
 126        public List<TutorialStep> stepsFromUserThatAlreadyDidTheTutorial = new ();
 27
 28        [Header("Teacher Configuration")]
 129        public float teacherMovementSpeed = 4f;
 30        public AnimationCurve teacherMovementCurve;
 31
 32        [Header("Eagle Eye Camera Configuration")]
 133        public Vector3 eagleCamInitPosition = new (30, 30, -50);
 134        public Vector3 eagleCamInitLookAtPoint = new (0, 0, 0);
 135        public bool eagleCamRotationActived = true;
 136        public float eagleCamRotationSpeed = 1f;
 37
 38        [Header("Debugging Configuration")]
 39        public bool debugRunTutorial;
 40        [Min(0)] public int debugStartingStepIndex;
 41        public bool debugOpenedFromDeepLink;
 42
 43        internal Camera teacherCamera;
 44        internal RawImage teacherRawImage;
 45        internal TutorialTeacher teacher;
 46        internal Canvas teacherCanvas;
 47        internal CinemachineVirtualCamera eagleEyeCamera;
 48
 49        public void ConfigureTeacher(Camera teacherCamera, RawImage teacherRawImage, TutorialTeacher teacher, Canvas tea
 50        {
 051            this.teacherCamera = teacherCamera;
 052            this.teacherRawImage = teacherRawImage;
 053            this.teacher = teacher;
 054            this.teacherCanvas = teacherCanvas;
 055        }
 56
 57        public void ConfigureEagleEyeCamera(CinemachineVirtualCamera eagleEyeCamera)
 58        {
 059            this.eagleEyeCamera = eagleEyeCamera;
 060        }
 61    }
 62}